Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!agate!howland.reston.ans.net!newsfeed.internetmci.com!vixen.cso.uiuc.edu!ux5.cso.uiuc.edu!igor From: igor@students.uiuc.edu (Igor Vladim Roshchin) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: multiple names Date: 5 Jun 1996 23:30:13 GMT Organization: University of Illinois at Urbana Lines: 35 Message-ID: <4p55a5$ag7@vixen.cso.uiuc.edu> References: <4p4clr$5lo@stratus.skypoint.net> <31B6378A.2F7D@www.play-hookey.com> NNTP-Posting-Host: ux5.cso.uiuc.edu X-Newsreader: TIN [version 1.2 PL2] Ken Bigelow (kbigelow@www.play-hookey.com) wrote: : Patrick Sonnek wrote: : > : > How would I configure me DNS (or hosts file) to point several different : > names all to the same location. : > : > I am running named. My IP address is 206.9.159.17 the names are : > parker.artbbs.com artbbs.com www.artbbs.com ftp.artbbs.com All of : > these need to resolve to the same IP address. and I'm a little confused : > on how to do this. : > : Put the names all on one line of /etc/hosts, after the IP address and : separated by spaces. For example, internally I know my main box as odin. : Thus, I have a line in /etc/hosts: : 206.161.179.129 www.play-hookey.com odin odin.play-hookey.com : Any of the three names works fine internally, although only the first one : is on any DNS. : Hope this helps! : Ken I don't think this is what was asked, This allows to resolve them locally. To have all the hostnames to be resolved from outside, one needs to change DNS entry in the default name-server (ask your provider, if you are not running it yourself) IgoR aka StR@komkon.org IgoR@uiuc.edu