Re: FQDN



Andrew Critchlow wrote:
Hi, I have not yet adjusted /etc/hosts ? Do I need to do this? What is its purpose and why cant it bypass this to use resolv.conf?
I have tried restarting etc
many thanks

Andrew,

I've not followed the discussion up to this point. I apologize if this doesn't answer your question or covers material already discussed.

The resolv.conf file provides information on name servers for your applications. It contains the IP address of 1 to 3 name servers.

These servers would be on the network and not accessible until the network is up and running. The /etc/hosts file provides a minimum static name service for use during booting, when the network is not yet available. It may also be useful for naming systems on a small local network (I have 3 systems on my local lan, too few to warrant the overhead and knowledge requirement to set up a local DNS server), and to provide basic name services for times with the DNS servers are not available, due to network issues or system crashes.

You tell your system how you want it to use the various name service providers (hosts file, DNS, others) using the /etc/nsswitch.conf file. This file allows configuring the search sequence for a number of other functions besides the name service. So look for the line beginning with 'hosts:' to see what your system is currently set up to do. Mine has the value "files dns" which tells the resolver routines to first use the local hosts file, and if nothing is found there, use DNS.

You could turn this around, as in "DNS files", to have your system consult DNS first. This will guarantee that you get current IP data for any system, but note, if the network is down and you have the maximum 3 DNS servers listed, the resolver will try each of them, timing out 3 times, before it tries the hosts file. This could take a while. Keeping the content of hosts as small as possible and using the default order is the generally accepted best practice, for optimal lookup speed.

I hope this helps.

Bob

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Relevant Pages

  • Re: Windows cannot find the network path error message in GPMC
    ... Preferred DNS server. ... bar of the Network Connections window, ... sure you have Forwarders to your ISP DNS servers Enabled. ... preventing access to this computer from the Internet" is Not checked on this ...
    (microsoft.public.windows.group_policy)
  • Re: User GPO doesnt replicate on one of my workstations
    ... client computers* ... all computers on the network must use the DNS servers for the ... sure that the IP addresses for the preferred and alternate DNS servers are ...
    (microsoft.public.windows.group_policy)
  • Re: DNS poisoning or ??
    ... Knowing that the suspected IP address is on the Internap network, if you issue an nslookup against one of the Internap DNS servers for information regarding your domain, you will notice that the Internap DNS server is handing out false/misleading information for mail.greenborder.com when #1) they don't own the domain in question, and #2) such DNS record does not exist for the domain in question. ... Interestingly enough, if you lookup the same record against the primary DNS servers listed when you issue a $ whois 216.52.7.214, the DNS ... So the issue at hand is being propagated by the other DNS servers listed above NS-A through NS-D.PNAP.NET (on the 64.95.x.x network). ...
    (Security-Basics)
  • Re: DNS performance
    ... >response time from my DNS servers typically 5000 ms against a threshold of ... >I know the built in performance momnitor has many counters relating to DNS ... Your starting point is to look at the fab-4: CPU utilisation, ... Memory usage and network I/O. ...
    (microsoft.public.windows.server.dns)
  • Re: Nslookups work, pings fail?
    ... > Directory enabled DNS servers. ... NSLookup contacts ONLY the DNS server and bypasses ... Many anti-malware programs will build a HOSTS file just ... If ping fails by address then it can be blocked by any intervening ...
    (microsoft.public.windows.server.dns)