Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kinda a hosts question I guess 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
So... I have a machine on a network, and it's working pretty well... but some of the name lookups are failing. I should probably be fixing that, but I'm exasperated, and out of time... so for now, I'm looking for a workaround.

Namely... if I
ping machineName
I get a lookup failure
but if I
ping machinename.astringNotTheDomainTho
then it works just fine

Is there something I can put in the hosts file or something similar such that it will automatically append that for me when doing a machine lookup?

If not, then for a couple key machines references all over the place, is there a way I can put an entry in the hosts file without an IP address (they're dynamic)

Something like

0.0.0.0 machinename.astringNotTheDomainTho machinename

?
 
Not something in /etc/hosts, but perhaps something in /etc/resolv.conf.

You can add an entry:

domain yourdomain.foo

to the file /etc/resolv.conf. That will tell the IP resolution subsystem to use assume that short names are in this domain. For more information, perform: man resolv.conf


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top