Re: very slow boot (newbie)



Daniel Bye <freebsd-questions@xxxxxxxxxxxxxxxxxxx> wrote:

On Fri, May 12, 2006 at 04:21:09PM +0100, Barnaby Scott wrote:
The fact that the operating system knows what the machine is called,
does not necessarily mean that the name is in the DNS. You can put an
entry in your /etc/hosts file (take a look at the file for the format),
which will allow sendmail and other daemons to start.

OK, I looked in /etc/hosts and only 127.0.0.1 localhost appears there.
How do I put another entry in here though, when I don't know in advance
the IP address that will be allocated to this machine by the DHCP server
(provided by my router)? The odd thing is that the system knows exactly
what IP address has been assigned, because I can see that transaction
taking place during the boot sequence long before the point where it
stalls.

Make an entry in /etc/hosts similar to:
127.0.0.1 hostname hostname.domain.com

(Only substitute your actual host and domain names)

Unless you reconfigure something, the resolver always checks /etc/hosts
first. Thus the DNS timeouts will never occur as the system will find
its hostname.

Not that, in my experience, it's important to put _both_ the short name
and the FQDN in.

--
Bill Moran

That's why I never kiss 'em on the mouth.

Jayne Cobb

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Antwort: Re: timeout by DNS? [Virus checked]
    ... nameserver was crashed, the second entry should function after 5 seconds. ... a DNS query will wait a total of 75 seconds before ... The timeout is defined by two values: ...
    (AIX-L)
  • Re: very slow boot (newbie)
    ... How do I put another entry in here though, when I don't know in advance ... Do I really want it in the DNS? ... network being able to look for my computer by name, ... This tells your local resolver library to consult /etc/hosts before it ...
    (freebsd-questions)
  • Re: Flushing the nameserver cache on AIX
    ... I updated the entry on the DNS server. ... gethostbyname() fetched the updated record. ...
    (comp.unix.aix)
  • Re: Can I change IP address on 5.5 server w/out problems?
    ... Make sure the WINS entry gets updated. ... > change the IP address of the server and move it to another subnet. ... > on the client PCs? ... I'm not planning on changing the computer or DNS names. ...
    (microsoft.public.exchange.admin)
  • Re: wireless: pings ok, but cant connect to net
    ... is no WINS server entry. ... or use netbios setting form DHCP server. ... other PCs, an Internet site by its IP address, an Internet site by ... same network can ping Internet names successfully then the DNS ...
    (microsoft.public.win2000.networking)