l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 29 02:37

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] HOWTO: setup private DNS/DHCP server...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] HOWTO: setup private DNS/DHCP server...

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Glad to hear you got NFS working.

On Mon, Apr 28, 2003 at 07:55:28PM -0700, Richard S. Crawford wrote:
> Next up: DNS, I think.  I shouldn't have to refer to other computers in
> my network by their IP addresses.

  Very basic, multiple ways to do this... in this everything is static
controlled by the dhcp server, one big mac address to name lookup table.
Some sort of dynamic dhcp-dns update might be better, but is out of scope=
for this email.

    Good Luck,
      Mike Simons

  I use settings like these on three different networks but this example
  is not verbatim from any of them so there might be some errors...

Step one: Need DHCP server working on some machine

# dhcpd.conf

option domain-name "chaos";
option domain-name-servers;

option subnet-mask;
default-lease-time 3600;
max-lease-time 72000;

subnet netmask {
  option broadcast-address;
  option routers;

host mordor {
  hardware ethernet 08:00:07:26:c0:a5;
  fixed-address mordor.chaos;

# repeat one of the host blocks for each static machine on your net,
# fix the ethernet address as required.

Step two: DNS server working on some machine=20
          (referred to by "domain-name-servers" above)

; BIND data file for local chaos network
$TTL    86400
@       IN      SOA     chaos. root.chaos. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
@       IN      NS      chaos.
localhost       IN      A
moria           IN      A     =20
gondor          IN      A     =20
rohan           IN      A     =20
mordor          IN      A     =20
lorien          IN      A     =20
shire           IN      A     =20
mirkwood        IN      A     =20
printer         IN      A     =20

; BIND reverse data file for broadcast zone
$TTL    86400
@       IN      SOA     chaos. root.chaos. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                          86400 )       ; Negative Cache TTL
@       IN      NS      localhost.
1       IN      PTR     moria.chaos.
2       IN      PTR     gondor.chaos.
3       IN      PTR     rohan.chaos.
4       IN      PTR     mordor.chaos.
5       IN      PTR     lorien.chaos.
6       IN      PTR     shire.chaos.
7       IN      PTR     mirkwood.chaos.
8       IN      PTR     printer.chaos.

Add to /etc/bind/named.conf
zone "chaos" {
        type master;
        file "/etc/bind/db.chaos";

zone "16.10.10.in-addr.arpa" {
        type master;
        file "/etc/bind/db.10";

Step three: Optional
            If you want the clients to resolve other domain names as well,=
            the client machines can replace the dhcpd instruction.

# /etc/dhclient.conf for dhcp-client package.
supersede domain-name "lugod.org foo.bar chaos";

GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org


vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.