18.07.2013 Views

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11: DNS (Domain Name System)<br />

Manually editing DNS configuration files<br />

Manually editing<br />

DNS<br />

configuration<br />

files<br />

342<br />

If you prefer to edit the DNS configuration files manually, follow these steps.<br />

Note: Files with a u extension are for the unbound nameserver, and files with an<br />

i extension are for the Internet nameserver.<br />

Important: You should only edit zone files for a master name server. Never edit the<br />

slave name server files. The file names shown below are for a master name server.<br />

1 Log into the <strong>Sidewinder</strong> <strong>G2</strong> and enter the following command to switch to<br />

the admin role:<br />

srole<br />

The following two steps assume you have database files named<br />

domain.db and reverse.db in your system. Substitute your file names<br />

as required.<br />

2 Open the /etc/namedb.u/domain.db and /etc/namedb.i/domain.db files in a<br />

UNIX text editor and make the necessary changes.<br />

3 Open the /etc/namedb.u/reverse.db and /etc/namedb.i/reverse.db files in a<br />

UNIX text editor and make the necessary changes.<br />

4 Open the /etc/named.conf.u and /etc/named.conf.i files in a UNIX text editor<br />

and make the necessary changes.<br />

Note: If you use the /etc/named.conf.* files to change an existing master zone<br />

into a slave zone, you must also manually remove the old zone files in your<br />

/etc/namedb.* directories.<br />

5 If you have added new files, you must change the files to the correct Type<br />

Enforcement types.<br />

To do this, type the following command and insert the names <strong>of</strong> the file(s)<br />

you edited in steps 2, 3 and 4. For non-Internet (unbound) burbs, in place <strong>of</strong><br />

x type the identifier u. For the Internet burb, in place <strong>of</strong> x type the index<br />

number <strong>of</strong> the Internet burb. (Use the region show command to determine<br />

the index number.)<br />

chtype DNSx:conf filename<br />

6 Increment the serial number after every change to the master files.<br />

7 Enter the following command to restart DNS.<br />

ndc restart<br />

Note: Any files created by named daemons, such as zone backup files or query<br />

log files, have types <strong>of</strong> DNSu:file or DNSx:file.<br />

8 Check /var/log/daemon.log for any errors.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!