Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!dispatch.news.demon.net!demon!pencotts.demon.co.uk From: Andrew Gordon <andrew.gordon@net-tel.co.uk> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: DNS for PPP client?!? Date: Sat, 12 Aug 1995 11:17:54 GMT Lines: 31 Message-ID: <808226274.17997@pencotts.demon.co.uk> References: <DD6JEx.4qx@serval.net.wsu.edu> NNTP-Posting-Host: pencotts.demon.co.uk X-NNTP-Posting-Host: pencotts.demon.co.uk X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed) MIME-Version: 1.0 To: msmith@beta.tricity.wsu.edu X-URL: news:DD6JEx.4qx@serval.net.wsu.edu Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii msmith@beta.tricity.wsu.edu (Mark Smith) wrote: >I just got my PPP account set up with the local ISP (I WISH it were ISDN >but that's a pipe dream for now) and I used the pppup and pppdown scripts >found in the FAQ/Text stuff and it works perfectly. My only problem with >it is DNS. How can I get my machine to go to the remote DNS server when >I give telnet or ftp a name instead of an IP address? I'd like to be >able to type "telnet hostname.domain" instead of "telnet xxx.xxx.xxx.xxx". Go edit /etc/resolv.conf . You can see what goes in there by 'man 5 resolver', but you probably want just two lines, similar to mine which reads: domain demon.co.uk nameserver 158.152.1.222 Obviously you should substitute your own domain, and preferably insert the address of a nameserver nearer to you than that one. You may also wish to edit /etc/host.conf, which controls the order in which it searches /etc/hosts and the DNS (defaults to DNS first). If you really want to improve the efficiency, you could set up your own nameserver, configuring it to hold no local information and to forward all requests to your ISP's nameserver. The advantage of doing this is that it will cache the values that you most often use. This is rather more complex to set up, though you can probably work it out from reading the named man page. Hope this helps. Andrew.