<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Linux-Noob Forums - DNS and DHCP]]></title>
		<link>https://www.linux-noob.com/forums/</link>
		<description><![CDATA[Linux-Noob Forums - https://www.linux-noob.com/forums]]></description>
		<pubDate>Thu, 07 May 2026 21:06:08 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[New to linux]]></title>
			<link>https://www.linux-noob.com/forums/thread-382.html</link>
			<pubDate>Wed, 13 Apr 2011 11:41:51 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3637">Jaxzu</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-382.html</guid>
			<description><![CDATA[<br />
hey guys <br />
<br />
 <br />
<br />
i have a problem i am new to linux and i want to configure a Dns server for mail and web hosting but i am having an error when i try to start my name server. i have editted my named.conf file this is how it looks like <br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Error</span><br />
<br />
Starting named: <br />
<br />
Error in named configuration:<br />
<br />
zone aromotorgroup.com/IN: loaded serial 2010052601<br />
<br />
zone 1.168.192.in-addr.arpa/IN: loaded serial 2010052601<br />
<br />
zone localhost.localdomain/IN: loaded serial 0<br />
<br />
zone localhost/IN: loaded serial 0<br />
<br />
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0<br />
<br />
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0<br />
<br />
zone 0.in-addr.arpa/IN: loaded serial 0<br />
<br />
zone aromotorgroup.com/IN: loading from master file aromotorgroup.com failed: file not found<br />
<br />
zone aromotorgroup.com/IN: not loaded due to errors.<br />
<br />
external/aromotorgroup.com/IN: file not found<br />
<br />
zone 226.99.221.41.in-addr.arpa/IN: loaded serial 2010052601<br />
<br />
                                                           [FAILED]<br />
<br />
 <br />
<br />
my named.conf file looks like this<br />
<br />
//<br />
<br />
// named.conf<br />
<br />
//<br />
<br />
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS<br />
<br />
// server as a caching only nameserver (as a localhost DNS resolver only).<br />
<br />
//<br />
<br />
// See /usr/share/doc/bind*/sample/ for example named configuration files.<br />
<br />
//<br />
<br />
 <br />
<br />
options {<br />
<br />
        #listen-on port 53 { 127.0.0.1; };<br />
<br />
        #listen-on-v6 port 53 { ::1; };<br />
<br />
        directory       "/var/named";<br />
<br />
        dump-file       "/var/named/data/cache_dump.db";<br />
<br />
        statistics-file "/var/named/data/named_stats.txt";<br />
<br />
        memstatistics-file "/var/named/data/named_mem_stats.txt";<br />
<br />
        allow-query     { localhost;192.168.1.100/24; };<br />
<br />
        recursion yes;<br />
<br />
 <br />
<br />
        dnssec-enable yes;<br />
<br />
        dnssec-validation yes;<br />
<br />
        dnssec-lookaside auto;<br />
<br />
        allow-transfer { localhost; 192.168.1.0/24; };<br />
<br />
/* Path to ISC DLV key */<br />
<br />
        bindkeys-file "/etc/named.iscdlv.key";<br />
<br />
};<br />
<br />
 <br />
<br />
logging {<br />
<br />
        channel default_debug {<br />
<br />
                file "data/named.run";<br />
<br />
                severity dynamic;<br />
<br />
        };<br />
<br />
};<br />
<br />
view "internal" {<br />
<br />
     match-clients {<br />
<br />
        localhost;<br />
<br />
        192.168.1.0/24;<br />
<br />
        };<br />
<br />
        zone "." IN {<br />
<br />
                type hint;<br />
<br />
                file "named.ca";<br />
<br />
        };<br />
<br />
        zone "aromotorgroup.com" IN {<br />
<br />
                type master;<br />
<br />
                file "aromotorgroup.com.lan";<br />
<br />
                allow-update { none; };<br />
<br />
   };<br />
<br />
        zone "1.168.192.in-addr.arpa" IN {<br />
<br />
                type master;<br />
<br />
                file "1.168.192.db";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
include "/etc/named.rfc1912.zones";<br />
<br />
};<br />
<br />
view "external" {<br />
<br />
    match-clients {<br />
<br />
        any;<br />
<br />
        };<br />
<br />
        zone "." IN {<br />
<br />
                type hint;<br />
<br />
                file "named.ca";<br />
<br />
        };<br />
<br />
        zone "aromotorgroup.com" IN {<br />
<br />
                type master;<br />
<br />
                file "aromotorgroup.com";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
        zone "226.99.221.41.in-addr.arpa" IN {<br />
<br />
 <br />
<br />
 <br />
<br />
  type master;<br />
<br />
                file "226.99.221.41.db";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
};<br />
<br />
and my zone file looks like this <br />
<br />
 <br />
<br />
&#36;TTL      86400<br />
<br />
@         IN      SOA     localhost.aromotorgroup.com. root.aromotorgroup.com. (<br />
<br />
                              2004042801      ; Serial<br />
<br />
                              2H       ; Refresh<br />
<br />
                              2H       ; Retry<br />
<br />
                              1H       ; Expire<br />
<br />
                              1D)      ; Min TTL<br />
<br />
 <br />
<br />
                        NS      localhost.aromotorgroup.com.<br />
<br />
                        NS      ns.domain.com.<br />
<br />
 <br />
<br />
aromotorgroup.com.           MX      5 mail.jyrules.com.<br />
<br />
aromotorgroup.com.           MX      15 pvr.jyrules.com.<br />
<br />
 <br />
<br />
aromotorgroup.com.           A       41.221.99.226<br />
<br />
 <br />
<br />
localhost                    A       127.0.0.1<br />
<br />
 <br />
<br />
www                             CNAME   aromotorgroup.com.<br />
<br />
ftp                             CNAME   aromotorgroup.com.<br />
<br />
mail                            CNAME   aromotorgroup.com.<br />
<br />
 <br />
<br />
pvr                        IN      A       226.99.221.41<br />
<br />
 <br />
<br />
 i hope i will be helped <br />
<br />
 <br />
<br />
 <br />
<br />
Thanks<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
hey guys <br />
<br />
 <br />
<br />
i have a problem i am new to linux and i want to configure a Dns server for mail and web hosting but i am having an error when i try to start my name server. i have editted my named.conf file this is how it looks like <br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Error</span><br />
<br />
Starting named: <br />
<br />
Error in named configuration:<br />
<br />
zone aromotorgroup.com/IN: loaded serial 2010052601<br />
<br />
zone 1.168.192.in-addr.arpa/IN: loaded serial 2010052601<br />
<br />
zone localhost.localdomain/IN: loaded serial 0<br />
<br />
zone localhost/IN: loaded serial 0<br />
<br />
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0<br />
<br />
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0<br />
<br />
zone 0.in-addr.arpa/IN: loaded serial 0<br />
<br />
zone aromotorgroup.com/IN: loading from master file aromotorgroup.com failed: file not found<br />
<br />
zone aromotorgroup.com/IN: not loaded due to errors.<br />
<br />
external/aromotorgroup.com/IN: file not found<br />
<br />
zone 226.99.221.41.in-addr.arpa/IN: loaded serial 2010052601<br />
<br />
                                                           [FAILED]<br />
<br />
 <br />
<br />
my named.conf file looks like this<br />
<br />
//<br />
<br />
// named.conf<br />
<br />
//<br />
<br />
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS<br />
<br />
// server as a caching only nameserver (as a localhost DNS resolver only).<br />
<br />
//<br />
<br />
// See /usr/share/doc/bind*/sample/ for example named configuration files.<br />
<br />
//<br />
<br />
 <br />
<br />
options {<br />
<br />
        #listen-on port 53 { 127.0.0.1; };<br />
<br />
        #listen-on-v6 port 53 { ::1; };<br />
<br />
        directory       "/var/named";<br />
<br />
        dump-file       "/var/named/data/cache_dump.db";<br />
<br />
        statistics-file "/var/named/data/named_stats.txt";<br />
<br />
        memstatistics-file "/var/named/data/named_mem_stats.txt";<br />
<br />
        allow-query     { localhost;192.168.1.100/24; };<br />
<br />
        recursion yes;<br />
<br />
 <br />
<br />
        dnssec-enable yes;<br />
<br />
        dnssec-validation yes;<br />
<br />
        dnssec-lookaside auto;<br />
<br />
        allow-transfer { localhost; 192.168.1.0/24; };<br />
<br />
/* Path to ISC DLV key */<br />
<br />
        bindkeys-file "/etc/named.iscdlv.key";<br />
<br />
};<br />
<br />
 <br />
<br />
logging {<br />
<br />
        channel default_debug {<br />
<br />
                file "data/named.run";<br />
<br />
                severity dynamic;<br />
<br />
        };<br />
<br />
};<br />
<br />
view "internal" {<br />
<br />
     match-clients {<br />
<br />
        localhost;<br />
<br />
        192.168.1.0/24;<br />
<br />
        };<br />
<br />
        zone "." IN {<br />
<br />
                type hint;<br />
<br />
                file "named.ca";<br />
<br />
        };<br />
<br />
        zone "aromotorgroup.com" IN {<br />
<br />
                type master;<br />
<br />
                file "aromotorgroup.com.lan";<br />
<br />
                allow-update { none; };<br />
<br />
   };<br />
<br />
        zone "1.168.192.in-addr.arpa" IN {<br />
<br />
                type master;<br />
<br />
                file "1.168.192.db";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
include "/etc/named.rfc1912.zones";<br />
<br />
};<br />
<br />
view "external" {<br />
<br />
    match-clients {<br />
<br />
        any;<br />
<br />
        };<br />
<br />
        zone "." IN {<br />
<br />
                type hint;<br />
<br />
                file "named.ca";<br />
<br />
        };<br />
<br />
        zone "aromotorgroup.com" IN {<br />
<br />
                type master;<br />
<br />
                file "aromotorgroup.com";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
        zone "226.99.221.41.in-addr.arpa" IN {<br />
<br />
 <br />
<br />
 <br />
<br />
  type master;<br />
<br />
                file "226.99.221.41.db";<br />
<br />
                allow-update { none; };<br />
<br />
        };<br />
<br />
};<br />
<br />
and my zone file looks like this <br />
<br />
 <br />
<br />
&#36;TTL      86400<br />
<br />
@         IN      SOA     localhost.aromotorgroup.com. root.aromotorgroup.com. (<br />
<br />
                              2004042801      ; Serial<br />
<br />
                              2H       ; Refresh<br />
<br />
                              2H       ; Retry<br />
<br />
                              1H       ; Expire<br />
<br />
                              1D)      ; Min TTL<br />
<br />
 <br />
<br />
                        NS      localhost.aromotorgroup.com.<br />
<br />
                        NS      ns.domain.com.<br />
<br />
 <br />
<br />
aromotorgroup.com.           MX      5 mail.jyrules.com.<br />
<br />
aromotorgroup.com.           MX      15 pvr.jyrules.com.<br />
<br />
 <br />
<br />
aromotorgroup.com.           A       41.221.99.226<br />
<br />
 <br />
<br />
localhost                    A       127.0.0.1<br />
<br />
 <br />
<br />
www                             CNAME   aromotorgroup.com.<br />
<br />
ftp                             CNAME   aromotorgroup.com.<br />
<br />
mail                            CNAME   aromotorgroup.com.<br />
<br />
 <br />
<br />
pvr                        IN      A       226.99.221.41<br />
<br />
 <br />
<br />
 i hope i will be helped <br />
<br />
 <br />
<br />
 <br />
<br />
Thanks<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Set up a simple DHCP server for a small network]]></title>
			<link>https://www.linux-noob.com/forums/thread-510.html</link>
			<pubDate>Tue, 23 Feb 2010 20:22:59 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=856">hybrid</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-510.html</guid>
			<description><![CDATA[<br />
A while back, an upgrade to the firmware of the router on my local network (which I wanted to apply to enable WPA2 encryption for the wireless connection) starting causing some strange issues with clients connecting to the network with DHCP. They would get addresses which would work, but when the addresses were attempted to be renewed, the DHCP server in the router would refuse and the client would effectively be booted off the network and unable to access anything.<br />
<br />
 <br />
<br />
So I decided to set up a DHCP server on my web server machine and switch off the built-in DHCP server on the router. My server would now handle the assignment of addresses, and hopefully not suffer from this annoying bug!<br />
<br />
 <br />
<br />
So, here's how to configure a basic DHCP server for a local network with dhcpd on CentOS 5.3. This guide should work for pretty much any distribution, though, just the way you install the dhcpd package may be different and start and stop the server may differ somewhat.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Install dhcpd</span><br />
<br />
 <br />
<br />
First, you need to install the DHCP server package. As root, run:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>yum install dhcp</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Just one more thing before we get cracking -- make sure that the server where you are installing this DHCP server uses a static IP address. It obviously doesn't make any sense for it to get its IP address from itself. I'm assuming you have a machine here that is designated as a server that is already set up manually to connect to your local network with a static IP address.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Set up the configuration file</span><br />
<br />
 <br />
<br />
You will need to know the local IP address range of your local network and which addresses you want to be assigned via DHCP. If you have some machines that are assigned static IP addresses, make sure these addresses fall outside the scope of your DHCP address range, or you could create conflicts.<br />
<br />
 <br />
<br />
In this example, I am going to assign IP addresses from 192.168.1.64 through 192.168.1.250 as DHCP addresses. When a machine comes on to the network, it will be assigned an address in this range by my new DHCP server. The router IP address on this network is 192.168.1.1.<br />
<br />
 <br />
<br />
Open the /etc/dhcpd.conf file in your favourite editor, while running as root. Make your file look something like this:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#<br />
# DHCP Server Configuration file.<br />
#&nbsp;&nbsp; see /usr/share/doc/dhcp*/dhcpd.conf.sample<br />
#<br />
<br />
ddns-update-style none;<br />
ignore client-updates;<br />
# these two options are for allowing clients to tell<br />
# update a DNS server when DHCP clients want a DNS hostname.<br />
# I'm switching this off -- I don't need it and it's out of<br />
# the scope of this tutorial!<br />
<br />
option domain-name-servers 216.146.35.35, 216.146.36.36;<br />
# place your DNS servers here -- you will probably want to retrieve<br />
# the addresses of the DNS servers you currently use from your router.<br />
# Here I'm using the public DNS servers of the Dyn Internet Guide public<br />
# DNS service. You may prefer your ISP's servers, or OpenDNS or Google Public<br />
# DNS or another service.<br />
<br />
default-lease-time 172800; # one day<br />
max-lease-time 604800; # seven days<br />
# you should be fine with these, unless you specifically want to change them!<br />
<br />
authoritative;<br />
<br />
subnet 192.168.1.0 netmask 255.255.255.0 {<br />
# place your network's IP information here, you should be able to retrieve from<br />
# your router.<br />
<br />
 range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;192.168.1.64 192.168.1.250;<br />
 # the range of addresses to be used by DHCP clients<br />
 option routers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1;<br />
 # the IP of your router, in order to get traffic out to the internet!<br />
 option subnet-mask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0<br />
 # again, retrieve from your current settings<br />
 option broadcast-address 192.168.1.255<br />
 # usually the last address on your network, again look at your current settings<br />
<br />
<br />
}</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
You will obviously need to substitute into that example file the IP addresses on your network, including the subnet, your desired IP address range for DHCP users, the router and your preferred DNS servers. As the comments say, you should be able to retrieve most of this information from your current network setup; so it will probably be on the pages of your router's configuration web page.<br />
<br />
 <br />
<br />
When you have customised that file with your information, save the file and quit your editor. The DHCP server should now be ready for action.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Start the DHCP server and set to run on reboot</span><br />
<br />
 <br />
<br />
Now, stop any existing DHCP server you might have enabled on your router. You will probably have to go to the configuration web page of your router and disable the DHCP server option. Two DHCP servers on the same network will likely conflict unless set up properly to coexist!<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Note that while there is no DHCP server on your network, any machine that joins won't be able to get an IP address and therefore will have trouble doing anything. Best do this at a quiet time when no-one is likely to be switching on or restarting their computer or otherwise reconnecting to your network.</span><br />
<br />
 <br />
<br />
Now switch on your new DHCP server if it isn't already. As root:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dhcpd start</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
You may want to use something 'Repair Connection' or a forced network refresh on one of your client computers to test that the new DHCP server is giving out addresses properly. Check the network properties on that machine and you should notice it has an address in the right range. To make sure that your router and DNS server addresses are right, connect to the internet and verify you can access your favourite websites.<br />
<br />
 <br />
<br />
If something goes wrong, use:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dhcpd stop<br />
chkconfig dhcpd off</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
to turn off your DHCP server (and prevent it from running again on reboot) and then you can re-enable the router's DHCP server option and be back at square one.<br />
<br />
 <br />
<br />
If all seems good and your new DHCP server is giving out the right addresses, you can set dhcpd to run at startup:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>chkconfig dhcpd on</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
From now on, your new DHCP server on Linux will be responsible for dishing out network addresses to clients.<br />
<br />
 <br />
<br />
Just remember that this machine where the DHCP server is installed must be switched on in order for the network to function properly. This machine ideally should be left on all the time (or at least all the time that your router is switched on), so that computers on the network can get access to the network properly.<br />
<br />
 <br />
<br />
It is also a good idea to know how to configure one of your machines with a static IP address, so that if all else fails, you can log back into the router and switch on its DHCP server option again.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
A while back, an upgrade to the firmware of the router on my local network (which I wanted to apply to enable WPA2 encryption for the wireless connection) starting causing some strange issues with clients connecting to the network with DHCP. They would get addresses which would work, but when the addresses were attempted to be renewed, the DHCP server in the router would refuse and the client would effectively be booted off the network and unable to access anything.<br />
<br />
 <br />
<br />
So I decided to set up a DHCP server on my web server machine and switch off the built-in DHCP server on the router. My server would now handle the assignment of addresses, and hopefully not suffer from this annoying bug!<br />
<br />
 <br />
<br />
So, here's how to configure a basic DHCP server for a local network with dhcpd on CentOS 5.3. This guide should work for pretty much any distribution, though, just the way you install the dhcpd package may be different and start and stop the server may differ somewhat.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Install dhcpd</span><br />
<br />
 <br />
<br />
First, you need to install the DHCP server package. As root, run:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>yum install dhcp</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Just one more thing before we get cracking -- make sure that the server where you are installing this DHCP server uses a static IP address. It obviously doesn't make any sense for it to get its IP address from itself. I'm assuming you have a machine here that is designated as a server that is already set up manually to connect to your local network with a static IP address.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Set up the configuration file</span><br />
<br />
 <br />
<br />
You will need to know the local IP address range of your local network and which addresses you want to be assigned via DHCP. If you have some machines that are assigned static IP addresses, make sure these addresses fall outside the scope of your DHCP address range, or you could create conflicts.<br />
<br />
 <br />
<br />
In this example, I am going to assign IP addresses from 192.168.1.64 through 192.168.1.250 as DHCP addresses. When a machine comes on to the network, it will be assigned an address in this range by my new DHCP server. The router IP address on this network is 192.168.1.1.<br />
<br />
 <br />
<br />
Open the /etc/dhcpd.conf file in your favourite editor, while running as root. Make your file look something like this:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#<br />
# DHCP Server Configuration file.<br />
#&nbsp;&nbsp; see /usr/share/doc/dhcp*/dhcpd.conf.sample<br />
#<br />
<br />
ddns-update-style none;<br />
ignore client-updates;<br />
# these two options are for allowing clients to tell<br />
# update a DNS server when DHCP clients want a DNS hostname.<br />
# I'm switching this off -- I don't need it and it's out of<br />
# the scope of this tutorial!<br />
<br />
option domain-name-servers 216.146.35.35, 216.146.36.36;<br />
# place your DNS servers here -- you will probably want to retrieve<br />
# the addresses of the DNS servers you currently use from your router.<br />
# Here I'm using the public DNS servers of the Dyn Internet Guide public<br />
# DNS service. You may prefer your ISP's servers, or OpenDNS or Google Public<br />
# DNS or another service.<br />
<br />
default-lease-time 172800; # one day<br />
max-lease-time 604800; # seven days<br />
# you should be fine with these, unless you specifically want to change them!<br />
<br />
authoritative;<br />
<br />
subnet 192.168.1.0 netmask 255.255.255.0 {<br />
# place your network's IP information here, you should be able to retrieve from<br />
# your router.<br />
<br />
 range&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;192.168.1.64 192.168.1.250;<br />
 # the range of addresses to be used by DHCP clients<br />
 option routers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1;<br />
 # the IP of your router, in order to get traffic out to the internet!<br />
 option subnet-mask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255.255.255.0<br />
 # again, retrieve from your current settings<br />
 option broadcast-address 192.168.1.255<br />
 # usually the last address on your network, again look at your current settings<br />
<br />
<br />
}</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
You will obviously need to substitute into that example file the IP addresses on your network, including the subnet, your desired IP address range for DHCP users, the router and your preferred DNS servers. As the comments say, you should be able to retrieve most of this information from your current network setup; so it will probably be on the pages of your router's configuration web page.<br />
<br />
 <br />
<br />
When you have customised that file with your information, save the file and quit your editor. The DHCP server should now be ready for action.<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">Start the DHCP server and set to run on reboot</span><br />
<br />
 <br />
<br />
Now, stop any existing DHCP server you might have enabled on your router. You will probably have to go to the configuration web page of your router and disable the DHCP server option. Two DHCP servers on the same network will likely conflict unless set up properly to coexist!<br />
<br />
 <br />
<br />
<span style="font-style: italic;" class="mycode_i">Note that while there is no DHCP server on your network, any machine that joins won't be able to get an IP address and therefore will have trouble doing anything. Best do this at a quiet time when no-one is likely to be switching on or restarting their computer or otherwise reconnecting to your network.</span><br />
<br />
 <br />
<br />
Now switch on your new DHCP server if it isn't already. As root:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dhcpd start</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
You may want to use something 'Repair Connection' or a forced network refresh on one of your client computers to test that the new DHCP server is giving out addresses properly. Check the network properties on that machine and you should notice it has an address in the right range. To make sure that your router and DNS server addresses are right, connect to the internet and verify you can access your favourite websites.<br />
<br />
 <br />
<br />
If something goes wrong, use:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/etc/init.d/dhcpd stop<br />
chkconfig dhcpd off</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
to turn off your DHCP server (and prevent it from running again on reboot) and then you can re-enable the router's DHCP server option and be back at square one.<br />
<br />
 <br />
<br />
If all seems good and your new DHCP server is giving out the right addresses, you can set dhcpd to run at startup:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>chkconfig dhcpd on</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
From now on, your new DHCP server on Linux will be responsible for dishing out network addresses to clients.<br />
<br />
 <br />
<br />
Just remember that this machine where the DHCP server is installed must be switched on in order for the network to function properly. This machine ideally should be left on all the time (or at least all the time that your router is switched on), so that computers on the network can get access to the network properly.<br />
<br />
 <br />
<br />
It is also a good idea to know how to configure one of your machines with a static IP address, so that if all else fails, you can log back into the router and switch on its DHCP server option again.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Set up a simple forwarding-only DNS server]]></title>
			<link>https://www.linux-noob.com/forums/thread-653.html</link>
			<pubDate>Wed, 03 Jun 2009 21:18:25 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=856">hybrid</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-653.html</guid>
			<description><![CDATA[<br />
I have absolutely no experience with DNS servers. I understand the principles behind DNS, but the perceived 'scariness' of configuring bind and different zones and such is quite a big issue.<br />
<br />
 <br />
<br />
I did want to do some experimentation with DNS servers, though, and I've found a very useful and simple tutorial to set up a simple 'forwarding only' server.<br />
<br />
 <br />
<br />
The tutorial is designed for Red Hat Enterprise Linux (and written by Red Hat), so it worked exactly as in the tutorial when I followed it on my CentOS 5.3 system.<br />
<br />
 <br />
<br />
Read the tutorial <br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I have absolutely no experience with DNS servers. I understand the principles behind DNS, but the perceived 'scariness' of configuring bind and different zones and such is quite a big issue.<br />
<br />
 <br />
<br />
I did want to do some experimentation with DNS servers, though, and I've found a very useful and simple tutorial to set up a simple 'forwarding only' server.<br />
<br />
 <br />
<br />
The tutorial is designed for Red Hat Enterprise Linux (and written by Red Hat), so it worked exactly as in the tutorial when I followed it on my CentOS 5.3 system.<br />
<br />
 <br />
<br />
Read the tutorial <br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[diskless booting troubles]]></title>
			<link>https://www.linux-noob.com/forums/thread-1102.html</link>
			<pubDate>Fri, 09 Nov 2007 01:23:08 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2626">kaushik</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1102.html</guid>
			<description><![CDATA[<br />
I compiled my client kernel to be vm-linuz-2.6.21-prepclient(FC7), where the client was configured to be NFS bootable.<br />
<br />
 <br />
<br />
I have two network cards on my client node, and both should be configured to run on different networks.<br />
<br />
 <br />
<br />
If my node is numbered node 2, then eth0 has 192.168.1.2 and eth1 has 192.168.3.2 . Likewise, node 3 has eth0 configured 192.168.1.3 and eth1 is 192.168.3.3 and so on.<br />
<br />
 <br />
<br />
First, on power on, the client contacts the server using eth0 with a dhcp request, and gets the correct ip configured to it. Subsequently, diskless booting happens through this network. At the time when eth1 is configured, however, the network fails saying "some other host already uses the address 192.168.3.2.". No matter what address I use, it gives the same error.<br />
<br />
 <br />
<br />
Prior to activating the network service, I have netfs and rpcbind going up.<br />
<br />
 <br />
<br />
After the system is booted, I tried manually assigning the ip address, using<br />
<br />
 <br />
<br />
/sbin/ifconfig eth1 192.168.3.2 up<br />
<br />
 <br />
<br />
But this dosent help. The DHCP server seems to be running ok and the configuration file too looks ok to me.<br />
<br />
 <br />
<br />
Can anybody help me with this problem?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I compiled my client kernel to be vm-linuz-2.6.21-prepclient(FC7), where the client was configured to be NFS bootable.<br />
<br />
 <br />
<br />
I have two network cards on my client node, and both should be configured to run on different networks.<br />
<br />
 <br />
<br />
If my node is numbered node 2, then eth0 has 192.168.1.2 and eth1 has 192.168.3.2 . Likewise, node 3 has eth0 configured 192.168.1.3 and eth1 is 192.168.3.3 and so on.<br />
<br />
 <br />
<br />
First, on power on, the client contacts the server using eth0 with a dhcp request, and gets the correct ip configured to it. Subsequently, diskless booting happens through this network. At the time when eth1 is configured, however, the network fails saying "some other host already uses the address 192.168.3.2.". No matter what address I use, it gives the same error.<br />
<br />
 <br />
<br />
Prior to activating the network service, I have netfs and rpcbind going up.<br />
<br />
 <br />
<br />
After the system is booted, I tried manually assigning the ip address, using<br />
<br />
 <br />
<br />
/sbin/ifconfig eth1 192.168.3.2 up<br />
<br />
 <br />
<br />
But this dosent help. The DHCP server seems to be running ok and the configuration file too looks ok to me.<br />
<br />
 <br />
<br />
Can anybody help me with this problem?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[troubles with script]]></title>
			<link>https://www.linux-noob.com/forums/thread-1306.html</link>
			<pubDate>Wed, 20 Jun 2007 18:31:07 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2131">snake444</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1306.html</guid>
			<description><![CDATA[<br />
when i run the script i get error, log :<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>eth1: No such device<br />
IPv6 configuration failed!</code></div></div><br />
<br />
<br />
<br />
the script's code:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
if ! [ -f /proc/net/if_inet6 ]<br />
then echo "IPv6 is not installed!" 1&gt;&amp;2; exit 1; fi<br />
ifconfig sit0 up &#92;<br />
&amp;&amp; ifconfig sit0 inet6 tunnel ::213.121.24.85 &#92;<br />
&amp;&amp; ifconfig sit1 inet6 add 2001:618:400::591:cb1f/128 &#92;<br />
&amp;&amp; route -A inet6 add ::/0 gw fe80::d579:1855 dev sit1 &#92;<br />
&amp;&amp; route -A inet6 add 2000::/3 gw fe80::d579:1855 dev sit1 &#92;<br />
&amp;&amp; ifconfig eth1 up &#92;<br />
&amp;&amp; ifconfig eth1 inet6 add 2001:618:400:b733::/64 &#92;<br />
&amp;&amp; echo 1 &gt; /proc/sys/net/ipv6/conf/all/forwarding &#92;<br />
&amp;&amp; echo 'interface eth1<br />
{<br />
AdvSendAdvert on;<br />
prefix 2001<br />
<br />
:618:400:b733::/64<br />
{<br />
&nbsp;&nbsp;AdvOnLink on;<br />
&nbsp;&nbsp;AdvAutonomous on;<br />
};<br />
};' &gt; /etc/radvd.conf &#92;<br />
&amp;&amp; /etc/init.d/radvd start &#92;<br />
&amp;&amp; echo "IPv6 configuration completed" || &#92;<br />
{ echo "IPv6 configuration failed!" 1&gt;&amp;2; exit 1; }</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
and when i do ifconfig there is:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>snake@delta:~&#36; ifconfig<br />
eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Ethernet&nbsp;&nbsp;HWaddr 00:E0:4C:77:CD:1D <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: fe80::2e0:4cff:fe77:cd1d/64 Диапазон:Link<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP BROADCAST RUNNING MULTICAST&nbsp;&nbsp;MTU:1500&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:270656 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:250379 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:1000<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:275446383 (262.6 MiB)&nbsp;&nbsp;TX bytes:21518725 (20.5 MiB)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interrupt:20 Base address:0x2000<br />
<br />
lo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Local Loopback <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet addr:127.0.0.1&nbsp;&nbsp;Mask:255.0.0.0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::1/128 Диапазон:Host<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP LOOPBACK RUNNING&nbsp;&nbsp;MTU:16436&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:84 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:84 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:4817 (4.7 KiB)&nbsp;&nbsp;TX bytes:4817 (4.7 KiB)<br />
<br />
ppp0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Point-to-Point Protocol <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet addr:89.1.203.31&nbsp;&nbsp;P-t-P:212.29.206.60&nbsp;&nbsp;Mask:255.255.255.255<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP POINTOPOINT RUNNING NOARP MULTICAST&nbsp;&nbsp;MTU:1492&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:269808 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:249776 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:3<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:269452852 (256.9 MiB)&nbsp;&nbsp;TX bytes:15987305 (15.2 MiB)<br />
<br />
sit0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:IPv6-in-IPv4 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::89.1.203.31/96 Диапазон:Compat<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::127.0.0.1/96 Диапазон:Unknown<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP RUNNING NOARP&nbsp;&nbsp;MTU:1480&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:0 (0.0 b)&nbsp;&nbsp;TX bytes:0 (0.0 b)<br />
<br />
sit1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:IPv6-in-IPv4 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: 2001:618:400::591:cb1f/128 Диапазон:Общий<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: fe80::5901:cb1f/64 Диапазон:Link<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP POINTOPOINT RUNNING NOARP&nbsp;&nbsp;MTU:1472&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:7 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:0 (0.0 b)&nbsp;&nbsp;TX bytes:588 (588.0 b)</code></div></div><br />
<br />
<br />
<br />
any ideas how to solve that problem?<br />
<br />
i tryed editing the script and changing all eth1 to eth0 because in ifconfig i dont see any eth1 connection but i got error too<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>snake@delta:~&#36; sudo sh LinuxScript.sh<br />
SIOCSIFADDR: File exists<br />
IPv6 configuration failed!</code></div></div><br />
<br />
<br />
<br />
thanks.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
when i run the script i get error, log :<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>eth1: No such device<br />
IPv6 configuration failed!</code></div></div><br />
<br />
<br />
<br />
the script's code:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/bin/sh<br />
if ! [ -f /proc/net/if_inet6 ]<br />
then echo "IPv6 is not installed!" 1&gt;&amp;2; exit 1; fi<br />
ifconfig sit0 up &#92;<br />
&amp;&amp; ifconfig sit0 inet6 tunnel ::213.121.24.85 &#92;<br />
&amp;&amp; ifconfig sit1 inet6 add 2001:618:400::591:cb1f/128 &#92;<br />
&amp;&amp; route -A inet6 add ::/0 gw fe80::d579:1855 dev sit1 &#92;<br />
&amp;&amp; route -A inet6 add 2000::/3 gw fe80::d579:1855 dev sit1 &#92;<br />
&amp;&amp; ifconfig eth1 up &#92;<br />
&amp;&amp; ifconfig eth1 inet6 add 2001:618:400:b733::/64 &#92;<br />
&amp;&amp; echo 1 &gt; /proc/sys/net/ipv6/conf/all/forwarding &#92;<br />
&amp;&amp; echo 'interface eth1<br />
{<br />
AdvSendAdvert on;<br />
prefix 2001<br />
<br />
:618:400:b733::/64<br />
{<br />
&nbsp;&nbsp;AdvOnLink on;<br />
&nbsp;&nbsp;AdvAutonomous on;<br />
};<br />
};' &gt; /etc/radvd.conf &#92;<br />
&amp;&amp; /etc/init.d/radvd start &#92;<br />
&amp;&amp; echo "IPv6 configuration completed" || &#92;<br />
{ echo "IPv6 configuration failed!" 1&gt;&amp;2; exit 1; }</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
and when i do ifconfig there is:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>snake@delta:~&#36; ifconfig<br />
eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Ethernet&nbsp;&nbsp;HWaddr 00:E0:4C:77:CD:1D <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: fe80::2e0:4cff:fe77:cd1d/64 Диапазон:Link<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP BROADCAST RUNNING MULTICAST&nbsp;&nbsp;MTU:1500&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:270656 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:250379 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:1000<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:275446383 (262.6 MiB)&nbsp;&nbsp;TX bytes:21518725 (20.5 MiB)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interrupt:20 Base address:0x2000<br />
<br />
lo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Local Loopback <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet addr:127.0.0.1&nbsp;&nbsp;Mask:255.0.0.0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::1/128 Диапазон:Host<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP LOOPBACK RUNNING&nbsp;&nbsp;MTU:16436&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:84 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:84 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:4817 (4.7 KiB)&nbsp;&nbsp;TX bytes:4817 (4.7 KiB)<br />
<br />
ppp0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Point-to-Point Protocol <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet addr:89.1.203.31&nbsp;&nbsp;P-t-P:212.29.206.60&nbsp;&nbsp;Mask:255.255.255.255<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP POINTOPOINT RUNNING NOARP MULTICAST&nbsp;&nbsp;MTU:1492&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:269808 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:249776 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:3<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:269452852 (256.9 MiB)&nbsp;&nbsp;TX bytes:15987305 (15.2 MiB)<br />
<br />
sit0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:IPv6-in-IPv4 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::89.1.203.31/96 Диапазон:Compat<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: ::127.0.0.1/96 Диапазон:Unknown<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP RUNNING NOARP&nbsp;&nbsp;MTU:1480&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:0 (0.0 b)&nbsp;&nbsp;TX bytes:0 (0.0 b)<br />
<br />
sit1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:IPv6-in-IPv4 <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: 2001:618:400::591:cb1f/128 Диапазон:Общий<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inet6 addr: fe80::5901:cb1f/64 Диапазон:Link<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UP POINTOPOINT RUNNING NOARP&nbsp;&nbsp;MTU:1472&nbsp;&nbsp;Metric:1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TX packets:7 errors:0 dropped:0 overruns:0 carrier:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collisions:0 txqueuelen:0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RX bytes:0 (0.0 b)&nbsp;&nbsp;TX bytes:588 (588.0 b)</code></div></div><br />
<br />
<br />
<br />
any ideas how to solve that problem?<br />
<br />
i tryed editing the script and changing all eth1 to eth0 because in ifconfig i dont see any eth1 connection but i got error too<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>snake@delta:~&#36; sudo sh LinuxScript.sh<br />
SIOCSIFADDR: File exists<br />
IPv6 configuration failed!</code></div></div><br />
<br />
<br />
<br />
thanks.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How I Got Bind9 Working On Debian Etch]]></title>
			<link>https://www.linux-noob.com/forums/thread-1483.html</link>
			<pubDate>Tue, 27 Mar 2007 18:48:36 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1398">DustyBin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1483.html</guid>
			<description><![CDATA[<br />
<span style="font-weight: bold;" class="mycode_b">TARGET MACHINE</span><br />
<br />
 <br />
<br />
apt-get install bind9<br />
<br />
 <br />
<br />
edit /etc/bind/named.conf.local<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zone "yourdomain.net" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/zones/yourdomain.net.db";<br />
&nbsp;&nbsp;&nbsp;&nbsp;};<br />
<br />
zone "0.168.192.in-addr.arpa" {<br />
 type master;<br />
 file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
mkdir /etc/bind/zones<br />
<br />
edit /etc/bind/zones/yourdomain.net.db<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>yourdomain.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; ns1.yourdomain.net. admin.yourdomain.net. (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000000001<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38400<br />
)<br />
<br />
yourdomain.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ns1.yourdomain.net.<br />
yourdomain.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yourdomain.net.<br />
<br />
www&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**<br />
mta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**<br />
ns1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
edit /etc/bind/zones/rev.0.168.192.in-addr.arpa<br />
<br />
The number before IN PTR yourdomain.net. is the machine address of the DNS server. in my case, it's 3, as my IP address is 192.168.0.3.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@ IN SOA ns1.yourdomain.net. admin.yourdomain.net. (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000000001;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;28800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;86400<br />
)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp; ns1.yourdomain.net.<br />
3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;PTR&nbsp;&nbsp;&nbsp;&nbsp;yourdomain.net.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">CONFIGURING THE NETWORK INTERFACES</span><br />
<br />
 <br />
<br />
edit etc/network/interfaces<br />
<br />
my particular LAN has static local addresses assigned by my router. I removed anything to do with DHCP so it wont overwrite /etc/resolv.conf and entered the relevant details so it looked like this but remember to change your details accordingly for your setup.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># The loopback network interface<br />
auto lo<br />
iface lo inet loopback<br />
<br />
# The primary network interface<br />
allow-hotplug eth0<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.0.2<br />
gateway 192.168.0.1<br />
netmask 255.255.255.0<br />
network 192.168.0.0<br />
broadcast 192.168.0.255</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Remove network-manager so this also doesnt overwrite the /etc/resolv.conf<br />
<br />
 <br />
<br />
apt-get remove --purge network-manager<br />
<br />
 <br />
<br />
edit /etc/resolv.conf<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>nameserver 127.0.0.1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Restart the network interfaces and check to make sure /etc/resolv.conf hasnt changed!<br />
<br />
 <br />
<br />
/etc/init.d/networking restart<br />
<br />
 <br />
<br />
 <br />
<br />
now try pinging <a href="http://www.yourdomain.net" target="_blank" rel="noopener" class="mycode_url">www.yourdomain.net</a><br />
<br />
 <br />
<br />
If all went well you could repeat 'CONFIGURING THE NETWORK INTERFACES' for other machines on your LAN so it uses bind9 as the name server but remember to point /etc/resolv.conf at the machine running bind9!<br />
<br />
 <br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">CHROOTING BIND9</span><br />
<br />
 <br />
<br />
It is VERY IMPORTANT to be running Bind9 as secure as possible. Heres how you chroot Bind9 on Debian Etch. <br />
<br />
magikman from #linux-noob / efnet kindly showed me how to do this.<br />
<br />
 <br />
<br />
edit /etc/default/bind9<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>OPTIONS="-u bind -t /var/lib/named"</code></div></div><br />
<br />
<br />
<br />
mkdir -p /var/lib/named/etc<br />
<br />
mkdir /var/lib/named/dev<br />
<br />
mkdir -p /var/lib/named/var/cache/bind<br />
<br />
mkdir -p /var/lib/named/var/run/bind/run<br />
<br />
mv /etc/bind /var/lib/named/etc<br />
<br />
ln -s /var/lib/named/etc/bind /etc/bind<br />
<br />
mknod /var/lib/named/dev/null c 1 3<br />
<br />
mknod /var/lib/named/dev/random c 1 8<br />
<br />
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random<br />
<br />
chown -R bind:bind /var/lib/named/var/*<br />
<br />
chown -R bind:bind /var/lib/named/etc/bind<br />
<br />
 <br />
<br />
edit /etc/init.d/sysklogd<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>SYSLOGD="-a /var/lib/named/dev/log"</code></div></div><br />
<br />
<br />
<br />
/etc/init.d/sysklogd restart<br />
<br />
 <br />
<br />
/etc/init.d/bind9 restart<br />
<br />
 <br />
<br />
Now you will running Bind9 chrooted :-)<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
<span style="font-weight: bold;" class="mycode_b">TARGET MACHINE</span><br />
<br />
 <br />
<br />
apt-get install bind9<br />
<br />
 <br />
<br />
edit /etc/bind/named.conf.local<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zone "yourdomain.net" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/zones/yourdomain.net.db";<br />
&nbsp;&nbsp;&nbsp;&nbsp;};<br />
<br />
zone "0.168.192.in-addr.arpa" {<br />
 type master;<br />
 file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
mkdir /etc/bind/zones<br />
<br />
edit /etc/bind/zones/yourdomain.net.db<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>yourdomain.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; ns1.yourdomain.net. admin.yourdomain.net. (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000000001<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;28800<br />
&nbsp;&nbsp;&nbsp;&n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;NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ns1.yourdomain.net.<br />
yourdomain.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yourdomain.net.<br />
<br />
www&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**<br />
mta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**<br />
ns1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; **serverIP**</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
edit /etc/bind/zones/rev.0.168.192.in-addr.arpa<br />
<br />
The number before IN PTR yourdomain.net. is the machine address of the DNS server. in my case, it's 3, as my IP address is 192.168.0.3.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@ IN SOA ns1.yourdomain.net. admin.yourdomain.net. (<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000000001;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;28800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;86400<br />
)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp; ns1.yourdomain.net.<br />
3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;PTR&nbsp;&nbsp;&nbsp;&nbsp;yourdomain.net.</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">CONFIGURING THE NETWORK INTERFACES</span><br />
<br />
 <br />
<br />
edit etc/network/interfaces<br />
<br />
my particular LAN has static local addresses assigned by my router. I removed anything to do with DHCP so it wont overwrite /etc/resolv.conf and entered the relevant details so it looked like this but remember to change your details accordingly for your setup.<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># The loopback network interface<br />
auto lo<br />
iface lo inet loopback<br />
<br />
# The primary network interface<br />
allow-hotplug eth0<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.0.2<br />
gateway 192.168.0.1<br />
netmask 255.255.255.0<br />
network 192.168.0.0<br />
broadcast 192.168.0.255</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Remove network-manager so this also doesnt overwrite the /etc/resolv.conf<br />
<br />
 <br />
<br />
apt-get remove --purge network-manager<br />
<br />
 <br />
<br />
edit /etc/resolv.conf<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>nameserver 127.0.0.1</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Restart the network interfaces and check to make sure /etc/resolv.conf hasnt changed!<br />
<br />
 <br />
<br />
/etc/init.d/networking restart<br />
<br />
 <br />
<br />
 <br />
<br />
now try pinging <a href="http://www.yourdomain.net" target="_blank" rel="noopener" class="mycode_url">www.yourdomain.net</a><br />
<br />
 <br />
<br />
If all went well you could repeat 'CONFIGURING THE NETWORK INTERFACES' for other machines on your LAN so it uses bind9 as the name server but remember to point /etc/resolv.conf at the machine running bind9!<br />
<br />
 <br />
<br />
 <br />
<br />
<span style="font-weight: bold;" class="mycode_b">CHROOTING BIND9</span><br />
<br />
 <br />
<br />
It is VERY IMPORTANT to be running Bind9 as secure as possible. Heres how you chroot Bind9 on Debian Etch. <br />
<br />
magikman from #linux-noob / efnet kindly showed me how to do this.<br />
<br />
 <br />
<br />
edit /etc/default/bind9<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>OPTIONS="-u bind -t /var/lib/named"</code></div></div><br />
<br />
<br />
<br />
mkdir -p /var/lib/named/etc<br />
<br />
mkdir /var/lib/named/dev<br />
<br />
mkdir -p /var/lib/named/var/cache/bind<br />
<br />
mkdir -p /var/lib/named/var/run/bind/run<br />
<br />
mv /etc/bind /var/lib/named/etc<br />
<br />
ln -s /var/lib/named/etc/bind /etc/bind<br />
<br />
mknod /var/lib/named/dev/null c 1 3<br />
<br />
mknod /var/lib/named/dev/random c 1 8<br />
<br />
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random<br />
<br />
chown -R bind:bind /var/lib/named/var/*<br />
<br />
chown -R bind:bind /var/lib/named/etc/bind<br />
<br />
 <br />
<br />
edit /etc/init.d/sysklogd<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>SYSLOGD="-a /var/lib/named/dev/log"</code></div></div><br />
<br />
<br />
<br />
/etc/init.d/sysklogd restart<br />
<br />
 <br />
<br />
/etc/init.d/bind9 restart<br />
<br />
 <br />
<br />
Now you will running Bind9 chrooted :-)<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIND9 Configuration Guidance]]></title>
			<link>https://www.linux-noob.com/forums/thread-1498.html</link>
			<pubDate>Sat, 24 Mar 2007 15:40:59 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=288">magikman</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1498.html</guid>
			<description><![CDATA[<br />
I am currently setting up a DNS server for several domains that i own and i would like some input from you all on my configuration options, etc. The domains have been replaced by example.com example1.com and example2.com.<br />
<br />
 <br />
<br />
Okay, first my options file:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>options {<br />
&nbsp;&nbsp;&nbsp;&nbsp;directory "/etc/bind";<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-query { localhost; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-recursion { 127.0.0.1; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;listen-on { &lt;IP of Server&gt;; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-transfer { none; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;auth-nxdomain yes;<br />
<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
named.conf:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>// If you are just adding zones, please do that in /etc/bind/named.conf.local<br />
<br />
include "/etc/bind/named.conf.options";<br />
<br />
// prime the server with knowledge of the root servers<br />
zone "." {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type hint;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.root";<br />
};<br />
<br />
// be authoritative for the localhost forward and reverse zones, and for<br />
// broadcast zones as per RFC 1912<br />
<br />
zone "localhost" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.local";<br />
};<br />
<br />
zone "127.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.127";<br />
};<br />
<br />
zone "0.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.0";<br />
};<br />
<br />
zone "255.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.255";<br />
};<br />
<br />
// zone "com" { type delegation-only; };<br />
// zone "net" { type delegation-only; };<br />
<br />
// From the release notes:<br />
//&nbsp;&nbsp;Because many of our users are uncomfortable receiving undelegated answers<br />
//&nbsp;&nbsp;from root or top level domains, other than a few for whom that behaviour<br />
//&nbsp;&nbsp;has been trusted and expected for quite some length of time, we have now<br />
//&nbsp;&nbsp;introduced the "root-delegations-only" feature which applies delegation-only<br />
//&nbsp;&nbsp;logic to all top level domains, and to the root domain.&nbsp;&nbsp;An exception list<br />
//&nbsp;&nbsp;should be specified, including "MUSEUM" and "DE", and any other top level<br />
//&nbsp;&nbsp;domains from whom undelegated responses are expected and trusted.<br />
// root-delegation-only exclude { "DE"; "MUSEUM"; };<br />
<br />
include "/etc/bind/named.conf.local";</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
named.conf.local:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zone "example.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};<br />
<br />
zone "example1.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example1.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};<br />
<br />
zone "example2.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example2.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; example.com.&nbsp;&nbsp;&nbsp;&nbsp;root.example.com. ( <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example1.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; www.example1.com.&nbsp;&nbsp;&nbsp;&nbsp; root.example1.com. ( <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2007032001; Serial<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800&nbsp;&nbsp;&nbsp;&nbsp;; Refresh<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;86400&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;; Retry<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2419200; Expire<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800 )&nbsp;&nbsp;&nbsp;&nbsp; ; Default TTL<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ns1.example.com.<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail.example.com.<br />
<br />
ns1.example.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example2.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; www.example2.com. root.example2.com. ( <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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p;&nbsp;ns1.example.com.<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail.example.com.<br />
<br />
ns1.example.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As you can see the dns server will be authoritative for all three domains. I am also going to be putting up a mail server in the near future and would like to serve mail for all three domains from the one server (mail.example.com). If there is anything wrong with these definitions, or if there is something that can be done better, please let me know. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I am currently setting up a DNS server for several domains that i own and i would like some input from you all on my configuration options, etc. The domains have been replaced by example.com example1.com and example2.com.<br />
<br />
 <br />
<br />
Okay, first my options file:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>options {<br />
&nbsp;&nbsp;&nbsp;&nbsp;directory "/etc/bind";<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-query { localhost; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-recursion { 127.0.0.1; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;listen-on { &lt;IP of Server&gt;; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;allow-transfer { none; };<br />
&nbsp;&nbsp;&nbsp;&nbsp;auth-nxdomain yes;<br />
<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
named.conf:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>// If you are just adding zones, please do that in /etc/bind/named.conf.local<br />
<br />
include "/etc/bind/named.conf.options";<br />
<br />
// prime the server with knowledge of the root servers<br />
zone "." {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type hint;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.root";<br />
};<br />
<br />
// be authoritative for the localhost forward and reverse zones, and for<br />
// broadcast zones as per RFC 1912<br />
<br />
zone "localhost" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.local";<br />
};<br />
<br />
zone "127.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.127";<br />
};<br />
<br />
zone "0.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.0";<br />
};<br />
<br />
zone "255.in-addr.arpa" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "/etc/bind/db.255";<br />
};<br />
<br />
// zone "com" { type delegation-only; };<br />
// zone "net" { type delegation-only; };<br />
<br />
// From the release notes:<br />
//&nbsp;&nbsp;Because many of our users are uncomfortable receiving undelegated answers<br />
//&nbsp;&nbsp;from root or top level domains, other than a few for whom that behaviour<br />
//&nbsp;&nbsp;has been trusted and expected for quite some length of time, we have now<br />
//&nbsp;&nbsp;introduced the "root-delegations-only" feature which applies delegation-only<br />
//&nbsp;&nbsp;logic to all top level domains, and to the root domain.&nbsp;&nbsp;An exception list<br />
//&nbsp;&nbsp;should be specified, including "MUSEUM" and "DE", and any other top level<br />
//&nbsp;&nbsp;domains from whom undelegated responses are expected and trusted.<br />
// root-delegation-only exclude { "DE"; "MUSEUM"; };<br />
<br />
include "/etc/bind/named.conf.local";</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
named.conf.local:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>zone "example.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};<br />
<br />
zone "example1.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example1.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};<br />
<br />
zone "example2.com" {<br />
&nbsp;&nbsp;&nbsp;&nbsp;type master;<br />
&nbsp;&nbsp;&nbsp;&nbsp;file "example2.com";<br />
&nbsp;&nbsp;&nbsp;&nbsp;notify no;<br />
};</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; example.com.&nbsp;&nbsp;&nbsp;&nbsp;root.example.com. ( <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2007032401<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;28800<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;86400&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2419200<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800 ) <br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ns1.example.com.<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail.example.com.<br />
<br />
ns1.example.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example1.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;604800 )&nbsp;&nbsp;&nbsp;&nbsp; ; Default TTL<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ns1.example.com.<br />
&nbsp;&nbsp;&nbsp;&nbsp;IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail.example.com.<br />
<br />
ns1.example.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
example2.com<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA&nbsp;&nbsp;&nbsp;&nbsp; www.example2.com. root.example2.com. ( <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2007032001; Serial<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IP of server&gt;</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
As you can see the dns server will be authoritative for all three domains. I am also going to be putting up a mail server in the near future and would like to serve mail for all three domains from the one server (mail.example.com). If there is anything wrong with these definitions, or if there is something that can be done better, please let me know. <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Dynamic DNS : Update query]]></title>
			<link>https://www.linux-noob.com/forums/thread-1534.html</link>
			<pubDate>Wed, 14 Mar 2007 12:08:59 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1481">nsvora</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1534.html</guid>
			<description><![CDATA[<br />
Hi,<br />
<br />
I am using BIND 9.2.4 on LINUX 2.6.9. I am facing the following issue:<br />
<br />
The domain name is set to testdns.com and when i update my host name as test, the update goes through fine to the DDNS server.<br />
<br />
But when my host name reaches 64 characters, the server sends the "Format Error" response code.<br />
<br />
I know domain name can be upto 256 bytes, but is 63 limiting factor for the host name?<br />
<br />
 <br />
<br />
Any help is appreciated.<br />
<br />
 <br />
<br />
Thanks in advance,<br />
<br />
nsvora<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi,<br />
<br />
I am using BIND 9.2.4 on LINUX 2.6.9. I am facing the following issue:<br />
<br />
The domain name is set to testdns.com and when i update my host name as test, the update goes through fine to the DDNS server.<br />
<br />
But when my host name reaches 64 characters, the server sends the "Format Error" response code.<br />
<br />
I know domain name can be upto 256 bytes, but is 63 limiting factor for the host name?<br />
<br />
 <br />
<br />
Any help is appreciated.<br />
<br />
 <br />
<br />
Thanks in advance,<br />
<br />
nsvora<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Dynamic DNS with static IP]]></title>
			<link>https://www.linux-noob.com/forums/thread-1698.html</link>
			<pubDate>Fri, 08 Dec 2006 22:47:38 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1481">nsvora</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1698.html</guid>
			<description><![CDATA[<br />
Hi All,<br />
<br />
I have a Linux machine having static IP configuration ( without DHCP). And if this configuration is changed, should this information be updated in the DNS server?<br />
<br />
 <br />
<br />
In short, does Dynamic DNS make sense with static IP configuration?<br />
<br />
 <br />
<br />
Any comment in this regard is highly appreciated.<br />
<br />
 <br />
<br />
With Regards,<br />
<br />
nsv<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi All,<br />
<br />
I have a Linux machine having static IP configuration ( without DHCP). And if this configuration is changed, should this information be updated in the DNS server?<br />
<br />
 <br />
<br />
In short, does Dynamic DNS make sense with static IP configuration?<br />
<br />
 <br />
<br />
Any comment in this regard is highly appreciated.<br />
<br />
 <br />
<br />
With Regards,<br />
<br />
nsv<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Vhost on irc]]></title>
			<link>https://www.linux-noob.com/forums/thread-1733.html</link>
			<pubDate>Thu, 09 Nov 2006 20:57:01 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1512">Star</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1733.html</guid>
			<description><![CDATA[<br />
Okey .. so .. i`ve done a lot of things on linux .. and i know what i`m intrested about .. but now i have something else that i`m intrested .. and i really can`t find any solid documentation how to do it ..<br />
<br />
 <br />
<br />
so .. i have my own linux machine with slack 10.2 ( static ip ofcourse ) &amp; my own domain .<br />
<br />
The domain`s nameserver is on my linux machine so everything is okay so far.<br />
<br />
 <br />
<br />
Besides everything else that i run on the slack , i have a psybnc.<br />
<br />
I want to set up a vhost ( on my domain ) .. so when I connect to a irc network , the name of the domain is shown , not the ip.<br />
<br />
 <br />
<br />
I've read about Reverse DNS , but i really can`t get it ...<br />
<br />
 <br />
<br />
So ... by any change .. can somebody explain to me .. step by step .. what i have to do ?<br />
<br />
 <br />
<br />
Thanks very much &amp; waiting for an answer.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Okey .. so .. i`ve done a lot of things on linux .. and i know what i`m intrested about .. but now i have something else that i`m intrested .. and i really can`t find any solid documentation how to do it ..<br />
<br />
 <br />
<br />
so .. i have my own linux machine with slack 10.2 ( static ip ofcourse ) &amp; my own domain .<br />
<br />
The domain`s nameserver is on my linux machine so everything is okay so far.<br />
<br />
 <br />
<br />
Besides everything else that i run on the slack , i have a psybnc.<br />
<br />
I want to set up a vhost ( on my domain ) .. so when I connect to a irc network , the name of the domain is shown , not the ip.<br />
<br />
 <br />
<br />
I've read about Reverse DNS , but i really can`t get it ...<br />
<br />
 <br />
<br />
So ... by any change .. can somebody explain to me .. step by step .. what i have to do ?<br />
<br />
 <br />
<br />
Thanks very much &amp; waiting for an answer.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Dynamic DNS Issue]]></title>
			<link>https://www.linux-noob.com/forums/thread-1752.html</link>
			<pubDate>Thu, 26 Oct 2006 04:29:44 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=1481">nsvora</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-1752.html</guid>
			<description><![CDATA[<br />
Hi All,<br />
<br />
 <br />
<br />
While testing the DDNS server configuration with proprietory DHCP and DDNS client, I noticed a strange thing. Any help here is appreciated.<br />
<br />
 <br />
<br />
Pre-condition:<br />
<br />
----------------<br />
<br />
DHCP and DDNS server are running on a single LINUX machine having following version:<br />
<br />
Linux ns1.testdns.com 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux<br />
<br />
 <br />
<br />
The DHCP server was able to generate the dynamic IP Address as specified in the dhcpd.conf.<br />
<br />
DDNS server was able to add the entries in the forward and reverse zone files eg : testdns.com and 1.168.192.in-addr.arpa<br />
<br />
This ensures that DHCP and DDNS server settings are correct.<br />
<br />
 <br />
<br />
Test Condition:<br />
<br />
---------------<br />
<br />
I modified the client host name and restarted the named service so that changes are reflected in the zone files. The forward zone file was expected to be updated with the modified host name.<br />
<br />
 <br />
<br />
Results:<br />
<br />
----------<br />
<br />
Forward zone had two entries viz; one with old host name and other with new host name.<br />
<br />
 <br />
<br />
Analysis:<br />
<br />
------------<br />
<br />
I have found that this is happening because in DDNS client code,<br />
<br />
before updating the server database with modified host name, we are checking whether a record with <br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi All,<br />
<br />
 <br />
<br />
While testing the DDNS server configuration with proprietory DHCP and DDNS client, I noticed a strange thing. Any help here is appreciated.<br />
<br />
 <br />
<br />
Pre-condition:<br />
<br />
----------------<br />
<br />
DHCP and DDNS server are running on a single LINUX machine having following version:<br />
<br />
Linux ns1.testdns.com 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux<br />
<br />
 <br />
<br />
The DHCP server was able to generate the dynamic IP Address as specified in the dhcpd.conf.<br />
<br />
DDNS server was able to add the entries in the forward and reverse zone files eg : testdns.com and 1.168.192.in-addr.arpa<br />
<br />
This ensures that DHCP and DDNS server settings are correct.<br />
<br />
 <br />
<br />
Test Condition:<br />
<br />
---------------<br />
<br />
I modified the client host name and restarted the named service so that changes are reflected in the zone files. The forward zone file was expected to be updated with the modified host name.<br />
<br />
 <br />
<br />
Results:<br />
<br />
----------<br />
<br />
Forward zone had two entries viz; one with old host name and other with new host name.<br />
<br />
 <br />
<br />
Analysis:<br />
<br />
------------<br />
<br />
I have found that this is happening because in DDNS client code,<br />
<br />
before updating the server database with modified host name, we are checking whether a record with <br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[strange reverse dns issue]]></title>
			<link>https://www.linux-noob.com/forums/thread-2082.html</link>
			<pubDate>Sat, 18 Mar 2006 01:10:49 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=955">wizzard</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2082.html</guid>
			<description><![CDATA[<br />
making a traceroute from Level3 network<br />
<br />
 <br />
<br />
Show Level 3 (Frankfurt, Germany) Traceroute to 81.196.170.68<br />
<br />
 <br />
<br />
  1 ge-1-1-51.car1.Frankfurt1.Level3.net (4.68.118.15) 0 msec<br />
<br />
    ge-1-2-56.car1.Frankfurt1.Level3.net (4.68.118.175) 0 msec<br />
<br />
    ge-1-1-55.car1.Frankfurt1.Level3.net (4.68.118.143) 0 msec<br />
<br />
  2 212.162.44.38 0 msec 4 msec<br />
<br />
    frankfurt2-cr2.ge3-0.rdsnet.ro (62.67.36.182) 0 msec<br />
<br />
  3 213.157.172.66 [AS8708 {RIPE-ASNBLOCK7}] 24 msec 24 msec 24 msec<br />
<br />
  4 81-196-170-68.rdsnet.ro (81.196.170.68) [AS8708 {RIPE-ASNBLOCK7}] 24 msec 36 msec 24 msec<br />
<br />
 <br />
<br />
 <br />
<br />
and same traceroute from telia network <br />
<br />
 <br />
<br />
1 kbn-b2-geth15-0-11.telia.net (213.248.66.73) [AS 1299] 0 msec 0 msec 0 msec<br />
<br />
  2 kbn-bb2-pos1-0-0.telia.net (213.248.65.13) [AS 1299] 0 msec 0 msec 0 msec<br />
<br />
  3 s-bb2-link.telia.net (213.248.65.165) [AS 1299] 12 msec 12 msec 16 msec<br />
<br />
  4 s-b3-pos4-0.telia.net (213.248.66.10) [AS 1299] 12 msec 12 msec 12 msec<br />
<br />
  5 ge-6-14.car2.Stockholm1.Level3.net (4.68.111.245) [AS 3356] 16 msec 12 msec 16 msec<br />
<br />
  6 ge-0-0-0.mp2.Stockholm1.Level3.net (4.68.96.225) [AS 3356] 16 msec 16 msec 200 msec<br />
<br />
  7 as-1-0.bbr2.Frankfurt1.Level3.net (212.187.128.97) [AS 3356] 32 msec 28 msec 28 msec<br />
<br />
  8 ge-1-2-54.car1.Frankfurt1.Level3.net (4.68.118.111) [AS 3356] 32 msec<br />
<br />
    ge-1-2-56.car1.Frankfurt1.Level3.net (4.68.118.175) [AS 3356] 28 msec<br />
<br />
    ge-1-1-51.car1.Frankfurt1.Level3.net (4.68.118.15) [AS 3356] 32 msec<br />
<br />
  9 frankfurt2-cr2.ge3-0.rdsnet.ro (62.67.36.182) [AS 3356] 28 msec 28 msec<br />
<br />
    212.162.44.38 [AS 3356] 32 msec<br />
<br />
 10 213.157.172.66 [AS 8708] 48 msec 52 msec 52 msec<br />
<br />
 11 headend.sm.rdsnet.ro (81.196.170.68) [AS 8708] 52 msec 52 msec 52 msec<br />
<br />
 <br />
<br />
so why in telia network the revers dns of my host is resolved and from level3 not ?<br />
<br />
 <br />
<br />
and exemples cand go further. <br />
<br />
 <br />
<br />
whereis the problem ?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
making a traceroute from Level3 network<br />
<br />
 <br />
<br />
Show Level 3 (Frankfurt, Germany) Traceroute to 81.196.170.68<br />
<br />
 <br />
<br />
  1 ge-1-1-51.car1.Frankfurt1.Level3.net (4.68.118.15) 0 msec<br />
<br />
    ge-1-2-56.car1.Frankfurt1.Level3.net (4.68.118.175) 0 msec<br />
<br />
    ge-1-1-55.car1.Frankfurt1.Level3.net (4.68.118.143) 0 msec<br />
<br />
  2 212.162.44.38 0 msec 4 msec<br />
<br />
    frankfurt2-cr2.ge3-0.rdsnet.ro (62.67.36.182) 0 msec<br />
<br />
  3 213.157.172.66 [AS8708 {RIPE-ASNBLOCK7}] 24 msec 24 msec 24 msec<br />
<br />
  4 81-196-170-68.rdsnet.ro (81.196.170.68) [AS8708 {RIPE-ASNBLOCK7}] 24 msec 36 msec 24 msec<br />
<br />
 <br />
<br />
 <br />
<br />
and same traceroute from telia network <br />
<br />
 <br />
<br />
1 kbn-b2-geth15-0-11.telia.net (213.248.66.73) [AS 1299] 0 msec 0 msec 0 msec<br />
<br />
  2 kbn-bb2-pos1-0-0.telia.net (213.248.65.13) [AS 1299] 0 msec 0 msec 0 msec<br />
<br />
  3 s-bb2-link.telia.net (213.248.65.165) [AS 1299] 12 msec 12 msec 16 msec<br />
<br />
  4 s-b3-pos4-0.telia.net (213.248.66.10) [AS 1299] 12 msec 12 msec 12 msec<br />
<br />
  5 ge-6-14.car2.Stockholm1.Level3.net (4.68.111.245) [AS 3356] 16 msec 12 msec 16 msec<br />
<br />
  6 ge-0-0-0.mp2.Stockholm1.Level3.net (4.68.96.225) [AS 3356] 16 msec 16 msec 200 msec<br />
<br />
  7 as-1-0.bbr2.Frankfurt1.Level3.net (212.187.128.97) [AS 3356] 32 msec 28 msec 28 msec<br />
<br />
  8 ge-1-2-54.car1.Frankfurt1.Level3.net (4.68.118.111) [AS 3356] 32 msec<br />
<br />
    ge-1-2-56.car1.Frankfurt1.Level3.net (4.68.118.175) [AS 3356] 28 msec<br />
<br />
    ge-1-1-51.car1.Frankfurt1.Level3.net (4.68.118.15) [AS 3356] 32 msec<br />
<br />
  9 frankfurt2-cr2.ge3-0.rdsnet.ro (62.67.36.182) [AS 3356] 28 msec 28 msec<br />
<br />
    212.162.44.38 [AS 3356] 32 msec<br />
<br />
 10 213.157.172.66 [AS 8708] 48 msec 52 msec 52 msec<br />
<br />
 11 headend.sm.rdsnet.ro (81.196.170.68) [AS 8708] 52 msec 52 msec 52 msec<br />
<br />
 <br />
<br />
so why in telia network the revers dns of my host is resolved and from level3 not ?<br />
<br />
 <br />
<br />
and exemples cand go further. <br />
<br />
 <br />
<br />
whereis the problem ?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Bind9 ACLs]]></title>
			<link>https://www.linux-noob.com/forums/thread-2361.html</link>
			<pubDate>Fri, 28 Oct 2005 03:05:45 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=990">cyris</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2361.html</guid>
			<description><![CDATA[<br />
I'm trying to setup Bind9 so that people cant point their dns server addresses to my box and do lookups off my server, but still have them able to query my dns server for the domains its authoritive for.<br />
<br />
 <br />
<br />
My named.conf<br />
<br />
 <br />
<br />
acl bogusnets {0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8; 192.0.2.0/24; 224.0.0.0/3; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16;};<br />
<br />
options {<br />
<br />
        directory       "/var/named";<br />
<br />
        version "<img src="https://www.linux-noob.com/forums/images/smilies/tongue.png" alt="Tongue" title="Tongue" class="smilie smilie_5" />";<br />
<br />
        blackhole { bogusnets; };<br />
<br />
        allow-recursion { none; };<br />
<br />
};<br />
<br />
zone "xyz.ca" {<br />
<br />
        type master;<br />
<br />
        file "data/named.xyz.ca";<br />
<br />
        allow-query { any; };<br />
<br />
};<br />
<br />
 <br />
<br />
The only way I've been able to stop people from doing lookups off my server is by setting recursion to none. I would like to have my localnet to have the option of doing  lookups off my box so I need a more suited way of controling who does lookups off my box.<br />
<br />
 <br />
<br />
I have read about views and I wont be serving different content to my localnet so I dont think I require them.<br />
<br />
 <br />
<br />
Version info<br />
<br />
 <br />
<br />
bind-utils-9.3.1-4<br />
<br />
bind-chroot-9.3.1-4<br />
<br />
bind-libs-9.3.1-4<br />
<br />
ypbind-1.17.2-5<br />
<br />
 <br />
<br />
2.6.11-1.1369_FC4<br />
<br />
 <br />
<br />
Thanks<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I'm trying to setup Bind9 so that people cant point their dns server addresses to my box and do lookups off my server, but still have them able to query my dns server for the domains its authoritive for.<br />
<br />
 <br />
<br />
My named.conf<br />
<br />
 <br />
<br />
acl bogusnets {0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8; 192.0.2.0/24; 224.0.0.0/3; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16;};<br />
<br />
options {<br />
<br />
        directory       "/var/named";<br />
<br />
        version "<img src="https://www.linux-noob.com/forums/images/smilies/tongue.png" alt="Tongue" title="Tongue" class="smilie smilie_5" />";<br />
<br />
        blackhole { bogusnets; };<br />
<br />
        allow-recursion { none; };<br />
<br />
};<br />
<br />
zone "xyz.ca" {<br />
<br />
        type master;<br />
<br />
        file "data/named.xyz.ca";<br />
<br />
        allow-query { any; };<br />
<br />
};<br />
<br />
 <br />
<br />
The only way I've been able to stop people from doing lookups off my server is by setting recursion to none. I would like to have my localnet to have the option of doing  lookups off my box so I need a more suited way of controling who does lookups off my box.<br />
<br />
 <br />
<br />
I have read about views and I wont be serving different content to my localnet so I dont think I require them.<br />
<br />
 <br />
<br />
Version info<br />
<br />
 <br />
<br />
bind-utils-9.3.1-4<br />
<br />
bind-chroot-9.3.1-4<br />
<br />
bind-libs-9.3.1-4<br />
<br />
ypbind-1.17.2-5<br />
<br />
 <br />
<br />
2.6.11-1.1369_FC4<br />
<br />
 <br />
<br />
Thanks<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Reverse DNS]]></title>
			<link>https://www.linux-noob.com/forums/thread-2384.html</link>
			<pubDate>Mon, 10 Oct 2005 09:24:33 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=137">Webbie</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2384.html</guid>
			<description><![CDATA[<br />
Hey guyz, alright, i had my reverse dns working for awhile now, then all the sudden something happend to my zone files, so i had to remake them, now when i redid my reverse.zone file and added the PTR records im getting this from bind when i restart the services<br />
<br />
 <br />
<br />
Oct 10 00:19:02 web named[14032]: zone 177.39.65.in-addr.arpa/IN: loading master file /var/named/reverse.zone.db: unexpected end of input<br />
<br />
Oct 10 00:19:02 web named[14032]: dns_rdata_fromtext: /var/named/reverse.zone.db:8: near eol: unexpected end of input<br />
<br />
Oct 10 00:19:02 web named[14032]: zone reverse.zone/IN: loading master file /var/named/reverse.zone.db: unexpected end of input<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
ive been at this for hrs now, cant seem to fix it<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hey guyz, alright, i had my reverse dns working for awhile now, then all the sudden something happend to my zone files, so i had to remake them, now when i redid my reverse.zone file and added the PTR records im getting this from bind when i restart the services<br />
<br />
 <br />
<br />
Oct 10 00:19:02 web named[14032]: zone 177.39.65.in-addr.arpa/IN: loading master file /var/named/reverse.zone.db: unexpected end of input<br />
<br />
Oct 10 00:19:02 web named[14032]: dns_rdata_fromtext: /var/named/reverse.zone.db:8: near eol: unexpected end of input<br />
<br />
Oct 10 00:19:02 web named[14032]: zone reverse.zone/IN: loading master file /var/named/reverse.zone.db: unexpected end of input<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
ive been at this for hrs now, cant seem to fix it<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[DNS configuration]]></title>
			<link>https://www.linux-noob.com/forums/thread-2434.html</link>
			<pubDate>Mon, 12 Sep 2005 00:09:33 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=955">wizzard</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-2434.html</guid>
			<description><![CDATA[<br />
i use afraid.org to make an alias to my ip adress and i set at home at dns usig the tutorial from this forum and i have some problems<br />
<br />
 <br />
<br />
i have wiz.rdstel.org that point to my ip 82.79.48.111 <br />
<br />
and i want <a href="http://www.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">www.wiz.rdstel.org</a> and <a href="http://ftp.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">ftp.wiz.rdstel.org</a> to do like same but i have a problem from my internal netwok and from server i can ping <a href="http://www.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">www.wiz.rdstel.org</a> and <a href="http://ftp.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">ftp.wiz.rdstel.org</a> but from the internet i can't<br />
<br />
 <br />
<br />
i open 53 port but still not working can some one help me ?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
i use afraid.org to make an alias to my ip adress and i set at home at dns usig the tutorial from this forum and i have some problems<br />
<br />
 <br />
<br />
i have wiz.rdstel.org that point to my ip 82.79.48.111 <br />
<br />
and i want <a href="http://www.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">www.wiz.rdstel.org</a> and <a href="http://ftp.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">ftp.wiz.rdstel.org</a> to do like same but i have a problem from my internal netwok and from server i can ping <a href="http://www.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">www.wiz.rdstel.org</a> and <a href="http://ftp.wiz.rdstel.org" target="_blank" rel="noopener" class="mycode_url">ftp.wiz.rdstel.org</a> but from the internet i can't<br />
<br />
 <br />
<br />
i open 53 port but still not working can some one help me ?<br />
<br />
]]></content:encoded>
		</item>
	</channel>
</rss>