Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2001 02:53:02 -0700 (PDT)
From:      Asep Ruspeni <asepruspeni@yahoo.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Non-authoritative answer
Message-ID:  <20011002095302.54144.qmail@web14402.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
hallo, my name asep ruspeni

i am using freebsd 4.0 as server.

i've just changed my ISP from metro.net.id to
link.net.id.

my domain : mti.itb.ac.id
my new DNS : 202.137.3.120 and 202.137.3.121
my old DNS : 202.153.225.114 and 202.153.225.113

when i issued nslookup at prompt

it answer :
Default server  : Dns1.link.net.id
Address         : 202.137.3.120

> server mti.itb.ac.id

it answer :
Default server : mti.ee.itb.ac.id
Address        : 202.153.225.114
Aliases        : mti.itb.ac.id

when i issued nslookup mti.itb.ac.id at prompt :

it answer :
server          : Dns1.link.net.id
Address         : 202.137.3.120

Non-authoritative answer : 
Name           : mti.ee.itb.ac.id
Address        : 202.153.225.114
Aliases        : mti.itb.ac.id

NOTE : 202.153.225.114 is my DNS address from my
previous ISP (metro.net.id). are there something
missing from my configuration ?

please send me your answer ASAP. thank you for your
attention.

my regards.
asep ruspeni

below are my configuration files :

=============gated===========================
traceoptions "/var/log/gated.log"	size	1048768 files 3


route;
#routerid	202.153.225.114;
#rip no;
rip yes
{
	broadcast;
	interface 202.77.97.209 ripin ripout;
	interface 10.10.1.4 ripin ripout;
	interface 192.9.200.4 ripin ripout;
#	sourcegateways 202.153.225.113;
};

ospf yes 
{
	traceoptions	hello;
	backbone {
		interface 10.10.1.4 192.9.200.4 202.77.97.209 cost 

10 {
			priority 10;
			hellointerval 10;
			routerdeadinterval 30;
		};
#		interface 192.9.200.4 cost 10 {
#			priority 10;
#			hellointerval 9;
#			routerdeadinterval 30;
#		};
#		interface 202.153.225.114 cost 10 {
#			priority 10;
#			hellointerval 8;
#			routerdeadinterval 30;
#		};
	};
};
#static
#{
#192.9.0.0 masklen 16 gateway 192.9.200.4;
#202.153.225.112 masklen 28 gateway 202.153.225.114;
#10.10.0.0 masklen 16 gateway 10.10.1.4;
#default	gateway 202.153.225.113;
#};
=====================end of gated==================

======================named========================
// $FreeBSD: src/etc/namedb/named.conf,v 1.6
1999/08/27 23:24:02 

peter Exp $
//
// Refer to the named(8) man page for details.  If you
are ever 

going
// to setup a primary server, make sure you've
understood the 

hairy
// details of how DNS is working.  Even with simple
mistakes, you 

can
// break connectivity for affected parties, or cause
huge amount 

of
// useless Internet traffic.

options {
	directory "/etc/namedb";

// In addition to the "forwarders" clause, you can
force your name
// server to never initiate queries of its own, but
always ask its
// forwarders only, by enabling the following line:
//
//      forward only;

// If you've got a DNS server around at your upstream
provider, 

enter
// its IP address here, and enable the line below. 
This will make 

you
// benefit from its cache, thus reduce overall DNS
traffic in the 

Internet.
/*
	forwarders {
		127.0.0.1;
	};
*/
	/*
	 * If there is a firewall between you and nameservers
you 

want
	 * to talk to, you might need to uncomment the 

query-source
	 * directive below.  Previous versions of BIND always


asked
	 * questions using port 53, but BIND 8.1 uses an 

unprivileged
	 * port by default.
	 */
	// query-source address * port 53;

	/*
	 * If running in a sandbox, you may have to specify a


different
	 * location for the dumpfile.
	 */
	// dump-file "s/named_dump.db";
};

// Note: the following will be supported in a future
release.
/*
host { any; } {
	topology {
		127.0.0.0/8;
	};
};
*/

// Setting up secondaries is way easier and the rough
picture for 

this
// is explained below.
//
// If you enable a local name server, don't forget to
enter 

127.0.0.1
// into your /etc/resolv.conf so this server will be
queried 

first.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
	type hint;
	file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
	type master;
	file "localhost.rev";
};

// NB: Do not use the IP addresses below, they are
faked, and only
// serve demonstration/documentation purposes!
//
// Example secondary config entries.  It can be
convenient to 

become
// a secondary at least for the zone where your own
domain is in.  

Ask
// your network administrator for the IP address of
the 

responsible
// primary.
//
// Never forget to include the reverse lookup
(IN-ADDR.ARPA) zone!
// (This is the first bytes of the respective IP
address, in 

reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to setup a primary zone, better
make sure you 

fully
// understand how DNS and BIND works, however.  There
are 

sometimes
// unobvious pitfalls.  Setting up a secondary is
comparably 

simpler.
//
// NB: Don't blindly enable the examples below. :-) 
Use actual 

names
// and addresses instead.
//
// NOTE!!! FreeBSD runs bind in a sandbox (see
named_flags in 

rc.conf).
// The directory containing the secondary zones must
be write 

accessible 
// to bind.  The following sequence is suggested:
//
//	mkdir /etc/namedb/s
//	chown bind.bind /etc/namedb/s
//	chmod 750 /etc/namedb/s

/*
zone "domain.com" {
	type slave;
	file "s/domain.com.bak";
	masters {
		192.168.1.1;
	};
};

zone "0.168.192.in-addr.arpa" {
	type slave;
	file "s/0.168.192.in-addr.arpa.bak";
	masters {
		192.168.1.1;
	};
};
*/
=================end of named=====================

==================rc.local===========================
/usr/local/bin/gdc start
/sbin/ipnat -f /etc/nat.rules
/usr/local/sbin/snmpd &
/usr/local/apache/bin/apachectl start
#csh -cf '/var/qmail/rc &'
/mysql/bin/safe_mysqld &
#ipfw add 250 allow tcp from any to 202.153.225.115 80
setup
ipfw add 300 deny tcp from 10.10.0.0:255.255.0.0 to
any 80 setup
ipfw add 350 deny tcp from 192.9.200.0:255.255.255.0
to any 80 

setup
ipfw add 400 deny tcp from 10.10.0.0:255.255.0.0 to
any 8888 setup
ipfw add 500 deny tcp from 192.9.200.0:255.255.255.0
to any 8888 

setup
/usr/local/squid/bin/squid &
/usr/libexec/ftpd -D &
==============end of rc.local=======================

================resolv.conf=========================
domain	mti.itb.ac.id
nameserver	202.137.3.120
nameserver      202.137.3.121
==================end of resolv.conf=================

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011002095302.54144.qmail>