Re: bind problem

2006-10-10 Thread Lothar Braun
Hi Robin,

On Tuesday 10 October 2006 16:22, Robin Tiwari wrote:
> i've configured dns server in freeBSD 6.1 but when i query the server it
> wont resolve my domain name. i've added in resolv.conf also and my bind
> daemon is also running without any errors. i couldnt figure out the
> problem. if any suggestion please help me

Can you send us your configuration files (or at least the important parts of 
them)?

-- Lothar


pgph5hHaogxsc.pgp
Description: PGP signature


Re: Bind problem

2006-07-11 Thread Derek Ragona

Lisa,

Your forward file should be something like this:

$TTL3600

@ IN  SOA ns.jellico.com. dnsadmin.jellico.com. (
2003071101  ; serial
3H  ; refresh
1H  ; retry
1W  ; expiry
1D ); minimum

; DNS Servers
@   IN NS   ns.jellico.com.
@   IN NS   ns2.jellico.com.

; Machine Names
localhost   IN A127.0.0.1

mailIN A208.44.26.225
pop IN A208.44.26.225
@   IN A208.44.26.225

; Aliases
www IN CNAME@
ww IN CNAME@
w IN CNAME@

; MX Record
@   IN MX   10  mail.jellico.com.



Just correct the IP's and add the rest of your hosts, and
correct any names that may be incorrect.  Make sure you name
the file the same as bind is looking for in:
/etc/namedb/named.conf

If you have specific questions to any of the file entries you can email me 
directly.


-Derek


At 01:20 PM 7/11/2006, Lisa Casey wrote:

Hi,



The installed bind is not in /usr/local/bin that is where the port is
installed.  You might want to do a:
# which bind

and set rc.conf to the right value for the program.

-Derek


At 04:34 PM 7/10/2006, Lisa Casey wrote:


- Original Message - From: "Jonathan Chen" <[EMAIL PROTECTED]>
To: "Lisa Casey" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 10, 2006 3:43 PM
Subject: Re: Bind problem



Did you remember to add:
   named_program="/usr/local/sbin/named"
to /etc/rc.conf?


Yes. /etc/rc.conf has the following lines for named:

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-u bind -g bind -c /etc/namedb/named.conf"


Lisa Casey


This actually didn't quite answer the problem, but it did lead me in the 
right direction to solve it.


which bind, of course, doesn't work and which named just gives me the path 
to the named executable as given in /etc.rc.conf  But, this got me to 
thinking so I did a find / -name named -print   And found 
something interesting. I have named executables in both /usr/local/sbin 
and  /usr/sbin So I changed the line in /etc/rc.conf that read: 
named_program="/usr/local/sbin/named"  to named_program="/usr/sbin/named" 
and rebooted the box.  So far, so good. named -v  gives me BIND 9.3.0 and 
in /var/messages the reboot info shows the same when named loads:


Jul 11 13:40:50 netlink kernel: Mounting root from ufs:/dev/da0s1a
Jul 11 13:40:50 netlink named[293]: starting BIND 9.3.0 -u bind -c 
/etc/namedb/n

amed.conf -t /var/named
Jul 11 13:40:51 netlink named[293]: command channel listening on 127.0.0.1#953

(It's also picking  up the command channel, so I guess I did that right).

I have one last problem (or at least I hope so!). I maybe ought to ask 
this in a bind newsgroup, but there are enough folks on this list running 
bind on FreeBSD that someone  ought to know. Evidently Bind 9 doesn't like 
my zone files whereas Bind 8 was OK with them. A little background:  My 
main domain name is jellico.comI also host several virtual domains 
using IP based virtual domains in Apache2. So each of my virtual domains 
has been assigned an IP address out of my Class C.   In /etc/namedb/M (the 
directory where I keep my zone files that this  DNS server is master for) 
I have (among other zones) jellico.com.db which is my forward file for the 
domain and 26.44.208.in-addr.arpa  which is the reverse zone file for the 
domain. I have always had my virtual domains configured into my forward 
file (jellico.com.db) so as to  enable forward DNS resolution on those. 
They are configured into jellico.com.db like this:


jellico.tn.us.  IN  A   208.44.26.225
multi-226   IN  A   208.44.26.226
multi-227   IN  A   208.44.26.227
multi-228   IN  A   208.44.26.228
multi-229   IN  A   208.44.26.229
multi-230   IN  A   208.44.26.230
tspma.com.  IN  A   208.44.26.231
copperhill.com. IN  A   208.44.26.232
multi-233   IN  A   208.44.26.233
www.jellico.net.IN  A   208.44.26.234
multi-235   IN  A   208.44.26.235
stair-way-to-heaven.com.IN  A   208.44.26.236
multi-237   IN  A   208.44.26.237
kcsvo.com.  IN  A   208.44.26.238
multi-239   IN  A   208.44.26.239
multi-240   IN  A   208.44.26.240
wingsofvictorychurch.org.   IN  A   208.44.26.241
multi-242   IN  A   208.44.26.242
multi-243   IN  A   208.44

Re: Bind problem

2006-07-11 Thread Lisa Casey

Hi,



The installed bind is not in /usr/local/bin that is where the port is
installed.  You might want to do a:
# which bind

and set rc.conf to the right value for the program.

-Derek


At 04:34 PM 7/10/2006, Lisa Casey wrote:


- Original Message - From: "Jonathan Chen" <[EMAIL PROTECTED]>
To: "Lisa Casey" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 10, 2006 3:43 PM
Subject: Re: Bind problem



Did you remember to add:
   named_program="/usr/local/sbin/named"
to /etc/rc.conf?


Yes. /etc/rc.conf has the following lines for named:

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-u bind -g bind -c /etc/namedb/named.conf"


Lisa Casey



This actually didn't quite answer the problem, but it did lead me in the 
right direction to solve it.


which bind, of course, doesn't work and which named just gives me the path 
to the named executable as given in /etc.rc.conf  But, this got me to 
thinking so I did a find / -name named -print   And found something 
interesting. I have named executables in both /usr/local/sbin and  /usr/sbin 
So I changed the line in /etc/rc.conf that read: 
named_program="/usr/local/sbin/named"  to named_program="/usr/sbin/named" 
and rebooted the box.  So far, so good. named -v  gives me BIND 9.3.0 and in 
/var/messages the reboot info shows the same when named loads:


Jul 11 13:40:50 netlink kernel: Mounting root from ufs:/dev/da0s1a
Jul 11 13:40:50 netlink named[293]: starting BIND 9.3.0 -u bind -c 
/etc/namedb/n

amed.conf -t /var/named
Jul 11 13:40:51 netlink named[293]: command channel listening on 
127.0.0.1#953


(It's also picking  up the command channel, so I guess I did that right).

I have one last problem (or at least I hope so!). I maybe ought to ask this 
in a bind newsgroup, but there are enough folks on this list running bind on 
FreeBSD that someone  ought to know. Evidently Bind 9 doesn't like my zone 
files whereas Bind 8 was OK with them. A little background:  My main domain 
name is jellico.comI also host several virtual domains using IP based 
virtual domains in Apache2. So each of my virtual domains has been assigned 
an IP address out of my Class C.   In /etc/namedb/M (the directory where I 
keep my zone files that this  DNS server is master for) I have (among other 
zones) jellico.com.db which is my forward file for the domain and 
26.44.208.in-addr.arpa  which is the reverse zone file for the domain. I 
have always had my virtual domains configured into my forward file 
(jellico.com.db) so as to  enable forward DNS resolution on those. They are 
configured into jellico.com.db like this:


jellico.tn.us.  IN  A   208.44.26.225
multi-226   IN  A   208.44.26.226
multi-227   IN  A   208.44.26.227
multi-228   IN  A   208.44.26.228
multi-229   IN  A   208.44.26.229
multi-230   IN  A   208.44.26.230
tspma.com.  IN  A   208.44.26.231
copperhill.com. IN  A   208.44.26.232
multi-233   IN  A   208.44.26.233
www.jellico.net.IN  A   208.44.26.234
multi-235   IN  A   208.44.26.235
stair-way-to-heaven.com.IN  A   208.44.26.236
multi-237   IN  A   208.44.26.237
kcsvo.com.  IN  A   208.44.26.238
multi-239   IN  A   208.44.26.239
multi-240   IN  A   208.44.26.240
wingsofvictorychurch.org.   IN  A   208.44.26.241
multi-242   IN  A   208.44.26.242
multi-243   IN  A   208.44.26.243

There are a few others, but you get the idea. I have also always had my 
virtual domains setup in my reverse file so as to enable reverse DNS 
resolution on these. This section of my reverse file looks like so:


225 IN  PTR jellico.tn.us.
226 IN  PTR multi-226.jellico.com.
227 IN  PTR multi-227.jellico.com.
228 IN  PTR multi-228.jellico.com.
229 IN  PTR multi-229.jellico.com.
230 IN  PTR multi-230.jellico.com.
231 IN  PTR tspma.com.
232 IN  PTR copperhill.com.
233 IN  PTR multi-233.jellico.com.
234 IN  PTR www.jellico.net.
234 IN  PTR multi-234.jellico.com.
235 IN  PTR multi-235.jellicocom.
236 IN  PTR stairway-to-heaven.com.

Bind 9 is OK with my reverse file, but it doesn't like any entry in my 
forward file that ends in a dot (so as not to append jellico.com to it). 
When I rebooted the box, as soon as the nameserver loads I get these error 
messages in /var/messages:


Jul 11 13:40:51 netlink named[293]: M/jellico.com.db:222: ignoring 
out-of-zone d

ata (mail.campbellcounty.com)
Jul 11 13:40:51 netlink named[293]: M/jellico.com.db:224: ignoring 
out-of-zone d

ata (campbellcounty.com)
Jul 11 13:40:51 netlink named[293]: M/jellico.com.db:522: ignorin

Re: Bind problem

2006-07-10 Thread Derek Ragona
The installed bind is not in /usr/local/bin that is where the port is 
installed.  You might want to do a:

# which bind

and set rc.conf to the right value for the program.

-Derek


At 04:34 PM 7/10/2006, Lisa Casey wrote:


- Original Message - From: "Jonathan Chen" <[EMAIL PROTECTED]>
To: "Lisa Casey" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 10, 2006 3:43 PM
Subject: Re: Bind problem



Did you remember to add:
   named_program="/usr/local/sbin/named"
to /etc/rc.conf?


Yes. /etc/rc.conf has the following lines for named:

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-u bind -g bind -c /etc/namedb/named.conf"


Lisa Casey

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bind problem

2006-07-10 Thread Beech Rintoul
On Monday 10 July 2006 13:34, Lisa Casey wrote:
> - Original Message -
> From: "Jonathan Chen" <[EMAIL PROTECTED]>
> To: "Lisa Casey" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Monday, July 10, 2006 3:43 PM
> Subject: Re: Bind problem
>
> > Did you remember to add:
> >
> >named_program="/usr/local/sbin/named"
> >
> > to /etc/rc.conf?
>
> Yes. /etc/rc.conf has the following lines for named:
>
> named_enable="YES"
> named_program="/usr/local/sbin/named"
> named_flags="-u bind -g bind -c /etc/namedb/named.conf"
>
>
> Lisa Casey

Bind 9 doesn't use the -g flag in the same way bind 8 used to.

From named(8)
-g Run the server in the foreground and force all logging to stderr.

Try dropping the -g bind flag from rc.conf
I remember having a similar problem a while back when I switched to bind9.

Beech
-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/"\   ASCII Ribbon Campaign  | Alaska Paradise
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpknzVdYFEvJ.pgp
Description: PGP signature


Re: Bind problem

2006-07-10 Thread Lisa Casey


- Original Message - 
From: "Jonathan Chen" <[EMAIL PROTECTED]>

To: "Lisa Casey" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 10, 2006 3:43 PM
Subject: Re: Bind problem



Did you remember to add:

   named_program="/usr/local/sbin/named"

to /etc/rc.conf?


Yes. /etc/rc.conf has the following lines for named:

named_enable="YES"
named_program="/usr/local/sbin/named"
named_flags="-u bind -g bind -c /etc/namedb/named.conf"


Lisa Casey

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Bind problem

2006-07-10 Thread Jonathan Chen
On Mon, Jul 10, 2006 at 03:11:41PM -0400, Lisa Casey wrote:
> Hi All,
> 
> I seem to have a bit of a problem with my Bind installation on FreeBSD 5.3. 
> When I first setup this box, I installed the Bind 8.4 from the ports. Soon 
> afterwards, I decided to go with Bind 9 so I installed that from the ports. 
> Now Bind seems to have an identity problem.

Did you remember to add:

named_program="/usr/local/sbin/named"

to /etc/rc.conf?

--
Jonathan Chen <[EMAIL PROTECTED]>
---
"I love deadlines. I like the whooshing sound they make as they fly by"
- Douglas Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"