Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Is there a way I can give the computers in my network domain names as apposed to numerical ip address? Thanks guys!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    Staffs,UK
    Posts
    17

    internal domain names?


    Is there a way I can give the computers in my network domain names as apposed to numerical ip address?

    Thanks guys!

  2. #2
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Location
    Johannesburg, South Africa
    Posts
    16
    This is very dependant on your network configuration, but assuming that you are using a Linux server as your LAN server, you can setup dns and a dhcp server and with some configuration can allocate names to your workstations using a domain such as yournetwork.lan or yournetwork.local ... Some more details on what you are running would help to assist you.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Location
    Staffs,UK
    Posts
    17
    at the moment I have my network as follows:

    cable modem->linksys router->other computers on network.

    is it possible on my current setup?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! garyalex's Avatar
    Join Date
    Jun 2008
    Location
    Johannesburg, South Africa
    Posts
    16
    In that case setup dns and dhcp on on of the computers, and set in dhcp the dns server to be this server.

    For more info:
    DHCP Mini Howto
    DNS Howto

    Those links will give you a good background to setup what you want to do.

  6. #5
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,761
    Unless you are doing it as an exercise, there's not much point in creating a DNS server for 2-3 machines.

    Just add the names you want to use to each systems' hosts file.

    Linux = /etc/hosts
    Windows = %WINDIR%/system32/drivers/etc/hosts

    Each line is an IP-name pair:

    Code:
    192.168.10.214<tab>dmz-server
    This ties the name dmz-server to the listed IP. So if you "ping dmz-server" the OS resolves the name to the IP and then sends an ICMP packet.

  7. #6
    Just Joined!
    Join Date
    Mar 2008
    Location
    Staffs,UK
    Posts
    17
    so if dmz server is running apache or something when I type it into my browser it will resolve? I'm doing it mainly to learn to be honest.

  8. #7
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    linux resolves hostnames in the order of host file-->dns server
    windows resolves in the order of host file -->dns server

    so if you add your machine names to all the host files then typing the name in the web browser will work, but only in your lan, this will have no affect on computers that you didn't change the host file or outside of your lan.

  9. #8
    Just Joined!
    Join Date
    Mar 2008
    Location
    Staffs,UK
    Posts
    17
    great just tried it and its worked a treat. what benefits would running a dns server give me. forget the fact I only have 3 computers

  10. #9
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    a dns server gives you the benefit of centralized management of your dns names. so if you have a dns server and change the ip and/or name of a machine you change it in one place. if you are using host files then you have to update every single host file on every machine. so if you only have 3 machines then running a dns server will be overkill, bigtime. but if you have 100 machines you don't want to have to manually change the host file across all 100 machines.

  11. #10
    Just Joined!
    Join Date
    Mar 2008
    Location
    Staffs,UK
    Posts
    17
    so a dns server is sort of like a central hosts file? sorry its so simple just trying to get my head around this.

    thanks for the help by the way

Page 1 of 2 1 2 LastLast

Posting Permissions

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