Differences between revisions 3 and 4
Revision 3 as of 2014-05-02 14:29:50
Size: 1443
Editor: lukisi
Comment:
Revision 4 as of 2014-05-02 20:05:48
Size: 2123
Editor: lukisi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 67: Line 67:

== Configure machine to resolve names ==

You can see a sample configuration of the resolver library in
/usr/share/doc/ntkresolv/ntkresolv.ini.sample

You have to edit the configuration file in
/etc/ntkresolv/ntkresolv.ini

{{{
sudo vi /etc/ntkresolv/ntkresolv.ini
}}}

Configure like this:

{{{
[NTKRESOLV]
ANDNASERVER=127.0.0.1
}}}

To instruct your system resolver to use ANDNA edit the configuration file
/etc/nsswitch.conf and place "andna [NOTFOUND=return]" before "dns" in the
line for the database "hosts".

{{{
sudo vi /etc/nsswitch.conf
}}}

There should be a line like this:

{{{
hosts: files andna [NOTFOUND=return] dns
}}}

Download and install netsukuku on a ubuntu machine

Install packages for building.

sudo apt-get install build-essential -y
sudo apt-get install pkg-config -y
sudo apt-get install libglib2.0-dev libpth-dev libgee-0.8-dev -y
sudo apt-get install libgcrypt20-dev -y

Prepare a directory for compilation.

mkdir ~/netsukuku-dev
cd ~/netsukuku-dev
for pkg in tasklet-0.9.tar.gz zcd-0.9.tar.gz netsukuku-rpc-0.9.tar.gz \
       andns-rpc-0.9.tar.gz ntkresolv-0.9.tar.gz netsukuku-0.9.tar.gz
do
 wget http://download.savannah.gnu.org/releases/netsukuku/${pkg}
 tar xf ${pkg}
done

Compile.

cd ~/netsukuku-dev/tasklet-0.9 &&
./configure --enable-logtasklet --prefix=/usr &&
make &&
make check &&
sudo make install


cd ~/netsukuku-dev/zcd-0.9 &&
./configure --enable-logtasklet --prefix=/usr &&
make &&
sudo make install


cd ~/netsukuku-dev/netsukuku-rpc-0.9 &&
./configure --enable-logtasklet --prefix=/usr &&
make &&
sudo make install


cd ~/netsukuku-dev/andns-rpc-0.9 &&
./configure --enable-logtasklet --prefix=/usr &&
make &&
make check &&
sudo make install


cd ~/netsukuku-dev/ntkresolv-0.9 &&
./configure --enable-logtasklet --prefix=/usr --sysconfdir=/etc &&
make &&
make check &&
sudo make install


cd ~/netsukuku-dev/netsukuku-0.9 &&
./configure --enable-logtasklet --prefix=/usr --sysconfdir=/etc &&
make &&
make check &&
sudo make install

Configure machine to resolve names

You can see a sample configuration of the resolver library in /usr/share/doc/ntkresolv/ntkresolv.ini.sample

You have to edit the configuration file in /etc/ntkresolv/ntkresolv.ini

sudo vi /etc/ntkresolv/ntkresolv.ini

Configure like this:

[NTKRESOLV]
ANDNASERVER=127.0.0.1

To instruct your system resolver to use ANDNA edit the configuration file /etc/nsswitch.conf and place "andna [NOTFOUND=return]" before "dns" in the line for the database "hosts".

sudo vi /etc/nsswitch.conf 

There should be a line like this:

hosts:          files andna [NOTFOUND=return] dns

Netsukuku_Dev/beta/ubuntu (last edited 2014-06-02 12:34:31 by lukisi)