Click to See Complete Forum and Search --> : host.conf help
mychl
03-08-2001, 11:05 AM
Could someone please let me know the exact wording of the allow all line that I need to put in the host.conf file so that I can access web pages. I finally got my modem working and would like to get to the web.
Thanks in advance.
What you're looking to do is verify that you've got a properly configured DNS that can map addresses to names, and you'll need to look in two places: /etc/host.conf and /etc/resolv.conf. Your host.conf file simply gives the order in which the resolver looks up adresses, whereas resolv.conf is a list of nameservers to use for said purpose. You'll have to know what DNS servers your ISP allows you access to , and stick em in resolv.conf, then make sure host.conf has a rule to use DNS. They should look something like this:
## /etc/host.conf
## 08MAR01
## YMMV
order hosts,bind
## eof
## /etc/resolv.conf
## 08MAR01
## YMMV
## Please insert your ISP's DNS servers instead of the adresses given here.
nameserver 192.168.1.1
nameserver 192.168.1.2
# eof
Please check out the DNS HOW-TO (http://www.linuxdoc.org/HOWTO/DNS-HOWTO.html) for information on setting up your own DNS server and do a 'man resolv.conf' and 'man host.conf' for specifics. Luck!
soleblazer
03-08-2001, 11:53 AM
Should have something like:
order hosts,bind
multi on
Make sure you either have valid dns names to ip address mappings in your hosts file or you specify a nameserver in your resolv.conf file. Resolv.conf should look like this:
domain yourdomain.com
nameserver xx.xxx.xx.xxx
nameserver xx.xxx.x.xxx
nameserver xxx.xx.x.xx
Where the x's are your isp's dns server.
mychl
03-08-2001, 11:59 AM
Thanks guys, that ought to do it. Now maybe my next post will be from my linux box... :D