[GRLUG] local dns

Ben Rousch brousch at gmail.com
Tue Feb 22 08:11:36 EST 2011


On Tue, Feb 22, 2011 at 8:02 AM, Topher <topher at codeventure.net> wrote:
> On Tue, 22 Feb 2011, Ben Rousch wrote:
>
>> On Tue, Feb 22, 2011 at 7:49 AM, Topher <topher at codeventure.net> wrote:
>>>
>>> I know this is common, but I don't remember what it's called.  I'm
>>> working
>>> on a web site, and I need my local machine to look at a different server
>>> for
>>> the domain name than the world dns thinks I should.
>>>
>>> Do I put something in resolve.conf so I can look at the dev server using
>>> the
>>> real domain name?
>>
>> I think you're looking for /etc/hosts
>
> Yeah, that sounds right.  What would the syntax be?

Hah, sorry, haven't had my coffee yet. There's usually a couple of
localhost entries in there as examples, but something like:

192.168.0.1	firewall
192.168.0.30	infosys2 ben.infosys2
192.168.0.103   vcs vcs.office.vdiw.net vcs.vdiw.local

IP Address, whitespace, hostnames separated by whitespace

>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>



-- 
  Ben Rousch
  brousch at gmail.com
  http://ishmilok.blogspot.com/

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list