Link to home
Start Free TrialLog in
Avatar of Paul Southcott
Paul SouthcottFlag for Guernsey

asked on

local nameserver settings with third party name server

I have a web server with 2 external IP address

If I set nameservers up on a third party nameserver ie GoDaddy/dyn etc what do I set the local nameserver to ?

1: The local ip address (or localhost)
or
2: The external IP address (ie - have 2 A record for each one)

GoDaddy say the A records will send to whichever route is available, so I just need to know the local settings

For your information the two external connections are VDSL and 4G - to allow for failover
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

localhost is universal - 127.0.0.1
ASKER CERTIFIED SOLUTION
Avatar of ArneLovius
ArneLovius
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am not sure I understand your question.

The web server can use any DNS resolver.

If your single web server has two public IPs,  you probably can't use both at the same time. In that case, you need a to use public DNS from somebody like DNS Made Easy. They can monitor your web server and only publish the A record for the working IP address. https://dnsmadeeasy.com/services/dnsfailover/

GoDaddy can't do this to the best of my knowledge. You don't want to publish a bad IP address as an A record.
Avatar of Paul Southcott

ASKER

maybe I didn't make the question clear

all I need you know is what DNS settings should I use on my local name server

do I set the A names to the external IP address or to the local address 192.168.??.??
External address
Is the web server on the same network as the client's of the local DNS server? If so, in general if your clients and servers are both on the inside of your firewall you need to publish the private IP in DNS. You need a hairpin NAT to get it to work with the public IP.
For DNS resolution on the local LAN of the web server, one should usually use the local LAN address in the local LAN DNS server.
I think that the terms used by OP are confusing people, as I don't think that they are being used as they are commonly understood.

In general, always use your local DNS server. This also applies to your web server. This is commonly referred to as DNS settings.

As for what should be used for the A record in the authoritative DNS zone on your internal DNS servers, you generally should use the private IP of the server if it is accessible via that IP.

In summary, DNS setting referred to which DNS server to use. DNS record referrs to the contents of the DNS zone file.