[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/slackware/ - Slackware Linux

#slackware@irc.rizon.net

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 818e24e98a373c9⋯.png (10.57 KB,264x65,264:65,logo.png)

 No.32

If you're interested in running a Local DNS (Domain Name System) for your machine, the instructions are as follows. Please remember that this guide is only for local DNS requests. Other machines in the network (if you have any) will not be able to use it, unless some more work is done (I won't get into that).

1. Download an updated version of named.root and replace the current one (/var/named/caching-example/named.root). Even better, rename the original named.root to something like named.root.orig just in case:

$ curl 'ftp://ftp.internic.net/domain/named.root'

$ sudo cp /var/named/caching-example/named.root /var/named/caching-example/named.root.orig

$ sudo mv named.root /var/named/caching-example/named.root

2. Make BIND's daemon executable:

$ sudo chmod 755 /etc/rc.d/rc.bind

3. Start BIND:

$ sudo /etc/rc.d/rc.bind start

4. Make sure /etc/resolv.conf is using the local IP Address of the machine running BIND. You should have a line like this "nameserver <local ip address>" commented out (remove the # at the beginning of the line if there is one). If you're using NetworkManager to configure DNS requests (which I think it can do), you'll need to configure it properly. Any other nameserver lines in /etc/resolv.conf must be commented out (put a # at the beginning of the line so it's not used).

Example of a working line in /etc/resolv.conf: nameserver 192.168.0.1

5. Verify that it's working:

$ dig localhost

You should see the IP Address in "SERVER:"

or

$ nslookup localhost

You should see the IP Address in "Server:"

6. Once it's working, you may want to dump the server caches and zones to a file for inspection:

$ sudo rndc dumpdb -all

$ most /var/named/named_dump.db (instead of most you can use more/less/cat/etc; you might have opted not to install most)

Source: http://www.basicconfig.com/slackware_linux_dns_server_setup

Compass.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
Post last edited at


[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]