Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loopback as primary DNS

60 views
Skip to first unread message

yaro137

unread,
Nov 6, 2009, 5:18:12 AM11/6/09
to
What could go wrong when we use it? Does the same apply to small
networks with one server only assuming that in both cases the DNS
server has two NICs?
yaro

Meinolf Weber [MVP-DS]

unread,
Nov 6, 2009, 5:34:33 AM11/6/09
to
Hello yaro137,

Loopback? What do you mean with this? Please describe more details about
your setup, amount of servers and there roles and what you are trying to
achive at the end including OS version and SP/patch level.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

yaro137

unread,
Nov 6, 2009, 6:28:36 AM11/6/09
to
On Nov 6, 10:34 am, Meinolf Weber [MVP-DS] <meiweb@(nospam)gmx.de>
wrote:

> Hello yaro137,
>
> Loopback? What do you mean with this? Please describe more details about
> your setup, amount of servers and there roles and what you are trying to
> achive at the end including OS version and SP/patch level.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
> no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!!http://www.blakjak.demon.co.uk/mul_crss.htm

>
> > What could go wrong when we use it? Does the same apply to small
> > networks with one server only assuming that in both cases the DNS
> > server has two NICs?
> > yaro

I mean sticking 127.0.0.1 as the primary DNS server's address on the
internal face NIC's properties page of the server that runs DNS.
yaro

Meinolf Weber [MVP-DS]

unread,
Nov 6, 2009, 6:37:13 AM11/6/09
to
Hello yaro137,

Got it. Was a bit blind with loopback ip address. If you have multiple servers
in your network use always the real ip address of the server instead. If
you have multiple DNS servers configure them also as secondary on the NIC
for redundancy.

yaro137

unread,
Nov 6, 2009, 7:37:02 AM11/6/09
to
On Nov 6, 11:37 am, Meinolf Weber [MVP-DS] <meiweb@(nospam)gmx.de>
wrote:
> Hello yaro137,
>

> Got it. Was a bit blind with loopback ip address. If you have multiple servers
> in your network use always the real ip address of the server instead. If
> you have multiple DNS servers configure them also as secondary on the NIC
> for redundancy.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
> no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!!http://www.blakjak.demon.co.uk/mul_crss.htm

>
> > On Nov 6, 10:34 am, Meinolf Weber [MVP-DS] <meiweb@(nospam)gmx.de>
> > wrote:
>
> >> Hello yaro137,
>
> >> Loopback? What do you mean with this? Please describe more details
> >> about your setup, amount of servers and there roles and what you are
> >> trying to achive at the end including OS version and SP/patch level.
>
> >> Best regards
>
> >> Meinolf Weber
> >> Disclaimer: This posting is provided "AS IS" with no warranties, and
> >> confers
> >> no rights.
> >> ** Please do NOT email, only reply to Newsgroups
> >> ** HELP us help YOU!!!http://www.blakjak.demon.co.uk/mul_crss.htm
> >>> What could go wrong when we use it? Does the same apply to small
> >>> networks with one server only assuming that in both cases the DNS
> >>> server has two NICs?
> >>> yaro
> > I mean sticking 127.0.0.1 as the primary DNS server's address on the
> > internal face NIC's properties page of the server that runs DNS. yaro

This is what I do as Microsoft's recommended best practice. I'm just
wandering what could be the drawbacks. Thanks again.
yaro

Dave Warren

unread,
Nov 6, 2009, 3:56:13 PM11/6/09
to
In message
<39c9aa2e-50b3-4f26...@f16g2000yqm.googlegroups.com>

yaro137 <yar...@googlemail.com> was claimed to have wrote:

>This is what I do as Microsoft's recommended best practice. I'm just
>wandering what could be the drawbacks. Thanks again.

I believe the concern is that the DNS registration client may not get
you registered properly if you use a loopback address here.

Meinolf Weber [MVP-DS]

unread,
Nov 7, 2009, 10:31:09 AM11/7/09
to
Hello yaro137,

Basically the loopback address is used for testing perpose. It will immediately
send the signal back to itself, which of course works on a DNS server as
pointing to itself. Also after promotion a server to DC/DNS, it changes automatically
to the loopback ip address to make sure it has a valid DNS server configured
as preferred on the NIC. So it doesn't need to know the real ip address.

yaro137

unread,
Nov 9, 2009, 5:52:40 AM11/9/09
to
On Nov 7, 3:31 pm, Meinolf Weber [MVP-DS] <meiweb@(nospam)gmx.de>
wrote:
> Hello yaro137,
>

> Basically the loopback address is used for testing perpose. It will immediately
> send the signal back to itself, which of course works on a DNS server as
> pointing to itself. Also after promotion a server to DC/DNS, it changes automatically
> to the loopback ip address to make sure it has a valid DNS server configured
> as preferred on the NIC. So it doesn't need to know the real ip address.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and confers
> no rights.
> ** Please do NOT email, only reply to Newsgroups

Yes, that's the thing, it does it automatically. I asked as I heard
from a pretty good source that it's not a good practice and many
admins do the mistake of leaving it this way. Unfortunately I had no
opportunity to ask that person why is that.
yaro

Grant Taylor

unread,
Nov 12, 2009, 1:20:51 AM11/12/09
to
On 11/9/2009 4:52 AM, yaro137 wrote:
> Yes, that's the thing, it does it automatically. I asked as I heard
> from a pretty good source that it's not a good practice and many
> admins do the mistake of leaving it this way. Unfortunately I had no
> opportunity to ask that person why is that.

I think it's a good idea to have an AD DC that is also a DNS server use
the loop back (or other similar things explained below). Mainly b/c DNS
will fail to start if the NIC is not plugged in or other wise does not
have link. This means that AD will come up with out DNS which is (in my
opinion) all about broken.

To help solve this, AD DCs with DNS will use the Loopback IP of
127.0.0.1 as an IP address that is guaranteed to be up and accessible.

along these same lines, I have been known to install the Microsoft
Loopback Adapter (not the internal adapter less virtual address that is
127/8 to Windows) and assign a static IP to it and use that as a DNS
server (as well as other things that can be routed to).

Grant. . . .

Meinolf Weber [MVP-DS]

unread,
Nov 12, 2009, 5:00:48 AM11/12/09
to

Hello Grant,

If the NIC is broken it doesn't matter which ip address is used, in my opinion.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

Ace Fekay [MCT]

unread,
Nov 12, 2009, 11:02:18 AM11/12/09
to
"Grant Taylor" <gta...@riverviewtech.net> wrote in message
news:hdg9g5$942$1...@tncsrv01.tnetconsulting.net...


I don't necessarily agree with using the loopback due to various reasons,
one of which is the reverse registration. Besides, if the IP address is not
upu and accessible, then it means the network will be down, then how will
the registration attempt be sent to DNS anyway? I also don't agree with
installing the loopback adapter to circumvent this.

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Please reply back to the newsgroup or forum for collaboration benefit among
responding engineers, and to help others benefit from your resolution.

Ace Fekay, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA
2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer

For urgent issues, please contact Microsoft PSS directly. Please check
http://support.microsoft.com for regional support phone numbers.


Grant Taylor

unread,
Nov 15, 2009, 3:30:41 AM11/15/09
to
On 11/12/2009 10:02 AM, Ace Fekay [MCT] wrote:
> I don't necessarily agree with using the loopback due to various
> reasons, one of which is the reverse registration. Besides, if the IP
> address is not upu and accessible, then it means the network will be
> down, then how will the registration attempt be sent to DNS anyway? I
> also don't agree with installing the loopback adapter to circumvent
> this.

Maybe it's just been my poor luck that I've had to deal with multiple
small offices / networks that could not get their server to boot up
correctly (b/c AD could not query DNS) when their switch was down (for
what ever reason). In these cases servers that would normally take 5
minutes to boot from power on would take 15 or more because they could
not query DNS b/c the network card did not have link. At least with the
Microsoft Loopback Adapter installed and up, the DNS server would come
up and AD could find DNS like it needed to.

I think my usage scenario may have more to do with the size of networks
that I work with. If I were working on a larger network with multiple
servers I agree that this is a sub-optimal solution.

Grant. . . .

Dave Warren

unread,
Nov 15, 2009, 6:44:16 PM11/15/09
to
In message <hdoe7k$s15$1...@tncsrv01.tnetconsulting.net> Grant Taylor

<gta...@riverviewtech.net> was claimed to have wrote:

>On 11/12/2009 10:02 AM, Ace Fekay [MCT] wrote:
>> I don't necessarily agree with using the loopback due to various
>> reasons, one of which is the reverse registration. Besides, if the IP
>> address is not upu and accessible, then it means the network will be
>> down, then how will the registration attempt be sent to DNS anyway? I
>> also don't agree with installing the loopback adapter to circumvent
>> this.
>
>Maybe it's just been my poor luck that I've had to deal with multiple
>small offices / networks that could not get their server to boot up
>correctly (b/c AD could not query DNS) when their switch was down (for
>what ever reason). In these cases servers that would normally take 5
>minutes to boot from power on would take 15 or more because they could
>not query DNS b/c the network card did not have link. At least with the
>Microsoft Loopback Adapter installed and up, the DNS server would come
>up and AD could find DNS like it needed to.

What difference does it make if your server takes 5 minutes or 15
minutes to boot when the NIC is disconnected? Do you regularly boot
your server without a network connection?

Admittedly the delay can be annoying on those one off cases where you
really do need to boot a system without a network connection, but
balanced against the annoyances of not having dynamic registration
working consistently, I'll take the longer boot time.

Grant Taylor

unread,
Nov 15, 2009, 9:21:46 PM11/15/09
to
On 11/15/2009 5:44 PM, Dave Warren wrote:
> What difference does it make if your server takes 5 minutes or 15
> minutes to boot when the NIC is disconnected? Do you regularly boot
> your server without a network connection?

It's not so much the delay that I have a problem with as it is the
system being in an inconsistent / unhappy state when it finally gets
booted up.

Grant. . . .

Ace Fekay [MCT]

unread,
Nov 16, 2009, 1:56:03 AM11/16/09
to
"Grant Taylor" <gta...@riverviewtech.net> wrote in message
news:hdqcvt$7io$1...@tncsrv01.tnetconsulting.net...


Curious, why would the switch not have power and the server does? I figure
the switch would boot up and be ready way before the server, assuming the
switch and server are either on the same UPS or different UPS that all power
back up after a power outage. Are the switch and servers on the same
electrical feed (to the building)?

Ace


Grant Taylor

unread,
Nov 19, 2009, 11:35:14 PM11/19/09
to
On 11/16/2009 12:56 AM, Ace Fekay [MCT] wrote:
> Curious, why would the switch not have power and the server does? I
> figure the switch would boot up and be ready way before the server,
> assuming the switch and server are either on the same UPS or
> different UPS that all power back up after a power outage. Are the
> switch and servers on the same electrical feed (to the building)?

The first time I ran in to this was while rebooting a server to diagnose
a weird problem that ended up being a locked up switch. The catch was
that the reboot that the client did before I walked in the door had us
waiting 15 - 20 minutes and the one that I did had me waiting again.

With regards to switches being battery backed, it depends on the
capacity of the UPS and what the client wants. Some of my clients are
of the opinion that if the power is out, the workstations can't get to
the server, so devote that battery power to keeping the server up longer
before initiating a shut down.

I have also run in to this when working on servers at my office where I
don't want the NIC plugged in to the network b/c of a DHCP server conflict.

In the end I've found that having the Microsoft Loopback Adapter to be
good for a number of different things. The fact that the DNS server
will have an always up (unless I disable it) interface was a bonus.

Grant. . . .

Dave Warren

unread,
Nov 22, 2009, 2:37:16 AM11/22/09
to
In message <he56a4$l8e$1...@tncsrv01.tnetconsulting.net> Grant Taylor

<gta...@riverviewtech.net> was claimed to have wrote:

>In the end I've found that having the Microsoft Loopback Adapter to be
>good for a number of different things. The fact that the DNS server
>will have an always up (unless I disable it) interface was a bonus.

Wouldn't that effectively multihome the machine, and bring with it all
those related hassles?

Ace Fekay [MCT]

unread,
Nov 22, 2009, 9:46:28 AM11/22/09
to
"Dave Warren" <dave-...@djwcomputers.com> wrote in message
news:i75hg5tnm04tm75iv...@4ax.com...


Good question. I actually don't remember, since I never use the loopback
adapter. Logically, if you have the loopback adapter installed, it wants an
IP, correct? So I would imagine yes, it would make it a multihomed machine.
I don't have a test DC to test this with, and I am reluctant to install it
on a production machine to test it.

Ace


Grant Taylor

unread,
Nov 22, 2009, 11:30:15 PM11/22/09
to
On 11/22/2009 1:37 AM, Dave Warren wrote:
> Wouldn't that effectively multihome the machine, and bring with it
> all those related hassles?

Yes, as I (mis)understand it, it does.

However I have never experienced any of the problems that others say
exist with multihomed DCs or boxen. (I'm not saying that they don't
exist, just that I've not run in to them.)

Grant. . . .

Ace Fekay [MCT]

unread,
Nov 23, 2009, 12:41:46 AM11/23/09
to
"Grant Taylor" <gta...@riverviewtech.net> wrote in message
news:hed34q$71a$2...@tncsrv01.tnetconsulting.net...


In a single site, single subnet scenario, if setup right (outer NIC -
disable NetBIOS, DNS Interface only listen inside, NIC on bottom of binding
order, remove outer IP in Nameserver tab, etc, and even using the ISP on the
outer NIC to not register into DNS - but may generate 5782 or other
registration errors), you maybe be able to get away with it.

Ace

Ace


Dave Warren

unread,
Nov 23, 2009, 1:22:26 AM11/23/09
to
In message <#FPfUK4a...@TK2MSFTNGP04.phx.gbl> "Ace Fekay [MCT]"

<ace...@mvps.RemoveThisPart.org> was claimed to have wrote:

>"Dave Warren" <dave-...@djwcomputers.com> wrote in message
>news:i75hg5tnm04tm75iv...@4ax.com...
>> In message <he56a4$l8e$1...@tncsrv01.tnetconsulting.net> Grant Taylor
>> <gta...@riverviewtech.net> was claimed to have wrote:
>>
>>>In the end I've found that having the Microsoft Loopback Adapter to be
>>>good for a number of different things. The fact that the DNS server
>>>will have an always up (unless I disable it) interface was a bonus.
>>
>> Wouldn't that effectively multihome the machine, and bring with it all
>> those related hassles?
>
>
>Good question. I actually don't remember, since I never use the loopback
>adapter. Logically, if you have the loopback adapter installed, it wants an
>IP, correct?

Yup. Think of it as a NIC connected to a switch without anything else
on the other end.

>So I would imagine yes, it would make it a multihomed machine.
>I don't have a test DC to test this with, and I am reluctant to install it
>on a production machine to test it.

I'd stick with that instinct :)

Ace Fekay [MCT]

unread,
Nov 23, 2009, 8:55:57 AM11/23/09
to
"Dave Warren" <dave-...@djwcomputers.com> wrote in message
news:ilmjg5hd4kojskpn3...@4ax.com...


As I thought! Thanks, Dave.

Ace


Jonathan de Boyne Pollard

unread,
Jan 25, 2010, 2:26:28 PM1/25/10
to

Wouldn't that effectively multihome the machine, and bring with it all those related hassles?

Yes, as I (mis)understand it, it does.

However I have never experienced any of the problems that others say exist with multihomed DCs or boxen.  (I'm not saying that they don't exist, just that I've not run in to them.)

The algorithm for the NetLogon service (in very broad view) would be a simple three-stage affair:  Find all of the network interfaces on the machine; find all of the IP addresses bound to each interface; send the DDNS Update requests to register them. 

I would be quite surprised if there wasn't an exclusion, either of network interfaces that are marked as loopback interfaces (in the first stage) or of IP addresses in 127.0.0.0/8 (in the second stage), preventing the registration of IP addresses and network interfaces that are not routable outside of the machine itself.  This is the sensible thing to do, and it would be surprising to learn that it wasn't being done.  There's a relatively easy way and documented way to do perform this sort of exclusion using the SIO_ADDRESS_LIST_QUERY WinSock ioctl, which filters out machine-local and link-local IP addresses that are bound to software loopback network interfaces.

The existence of such a filter would explain why you've never had a problem, here.

0 new messages