C S Shyam Sundar's Weblog

Posts Tagged ‘debian

(debian) forcing DNS to resolve by hostname

Posted by: Shyam Sundar on: December 5, 2007

I often encounter the following situation whenever I setup a Debian based system:
you can ping the linux (debian/ubuntu) box, but you can’t do the same using a hostname., however you set using hostname and other tools …
This is the small life-saver code that does the magic!  Assume that you want to set hostname as `dapperbox’ [...]

Tags: , ,