Find the answer to your Linux question:
Results 1 to 3 of 3
I have linux machine with hostname as mymachine i want to give it a domain for example mymachine.mydom.me AND i want nslookup to resolve it without going to internet and ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    1

    nslookup question ....?

    I have linux machine with hostname as mymachine
    i want to give it a domain for example mymachine.mydom.me AND i want nslookup to resolve it without going to internet and search there.

    Please let me know how this can be done

    Thanks

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114

  3. #3
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Simply.

    sudo nano /etc/hosts
    and entry

    127.0.0.1 mymachine.mydom.me mymachine
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...