format config for /etc/hosts

Mark_Andrews at isc.org Mark_Andrews at isc.org
Thu Jan 30 04:50:09 UTC 2003


> I'm running Redhat linux 8.
> 
> I've seemed to misconfigure my /etc/hosts file.
> The file read at one point:
> 
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> (It's blank here with now configuration... just the 2 comments above)
> 
> ...... it read this without any configuration conttext after I had
> been playing around with my BIND DNS Server Configuration. (I ended up
> uninstalling the Redhat RPM for the DNS Server because now I can't even
> connect to the internet..... I use DSL with a Router at 192.168.1.1 and one
> statically assigned PC at 192.168.1.2
> 
> The problem I now have is: I DON'T KNOW THE CONFIGURATION FORMAT
> FOR THIS FILE /etc/hosts
> 
> my /etc/host.conf file reads:
> order hosts,bind
> 
> which leads me to believe the /etc/hosts file should say something like
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> allow 192.168.1.2 localhost
> 
> but I tried this and it doesn't work.
> Please help me by giving the right configuration string for this /etc/hosts
> file
> 
> 

	This is what manuals are for.

	e.g.
		man 5 hosts

	Mark
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list