Re: Simple DNS Configuration

2006-07-25 Thread Matthias Fechner
Hello David,

* David Stanford <[EMAIL PROTECTED]> [25-07-06 02:50]:
> www  IN  A   66.246.140.170

you can also write:
www IN   CNAME  chadwick.daemonbox.net.

so if the IP address changes you must only edit one line.

Best regards,
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-25 Thread James Long
> Date: Mon, 24 Jul 2006 17:53:03 -0400
> From: "David Stanford" <[EMAIL PROTECTED]>
> Subject: Re: Simple DNS Configuration
> To: "Matthias Fechner" <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> www IN  A   66.246.140.170
> www IN  CNAME   @
>
> Does anyone see anything wrong with this? Thanks for all your help!

I'm not sure that it's the root of all evil, but you have redundant
defintions for www.

Stop and then restart named.  Then, what is the output of

grep named /var/log/messages




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


Re: Simple DNS Configuration

2006-07-25 Thread David Stanford

> Yea, I feel I may just use the A records as the additional query issue
you
> mentioned previously leaves me thinking it's the better
configuration...it
> still bothers me I can't figure it out though. :-/


Not sure what you mean.



I was referring to your comment regarding CNAME causing an  additional query
for each look-up:

"I wouldn't recommend using CNAME for www due to extra DNS lookups[1]."


[EMAIL PROTECTED] ~]# /etc/rc.d/named start

>>> Starting named.
>>
>> Check your logs.
>
>
> I've been checking /var/log/messages but see nothing after recieving
that
> error. Are all named logs placed here by default?


This is the only place where I look. As far as I'm concerned, if a
reload was unsuccessful, then you'll get something in there. Otherwise
nothing gets logged.


>> [EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
>>> Using domain server:
>>> Name: localhost
>>> Address: 127.0.0.1#53
>>> Aliases:
>>>
>>> Host daemonbox.net not found: 2(SERVFAIL)
>>>
>>>
>>> Does anyone see anything wrong with this? Thanks for all your help!
>>
>> Can you resolve other domains (e.g.: freebsd.org)? Can't think of
>> anything else right now.
>
>
> Yes, as I noted, when  I remove the CNAME entry everything works fine.
Very
> strange...


Not sure about that either. I guess you shouldn't use it then. Anyway,
at least your domain is responding now:


$ host -t a daemonbox.net chadwick.daemonbox.net
Using domain server:
Name: chadwick.daemonbox.net
Address: 66.246.140.170#53
Aliases:

daemonbox.net has address 66.246.140.170

$ host -t a www.daemonbox.net chadwick.daemonbox.net
Using domain server:
Name: chadwick.daemonbox.net
Address: 66.246.140.170#53
Aliases:

www.daemonbox.net has address 66.246.140.170



Wow, I'm surprised you were able to get that as I've also been making
firewall adjustments all night. :)

http://www.dnsreport.com/tools/dnsreport.ch?domain=daemonbox.net



www.dnsreport.com is a great tool for all your DNS needs.



Absolutely. I'd be lost at work without it (or dnsstuff.com). :) Thanks
again for all your help!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread David Stanford

> ; MX Records
> > IN  MX 10   mail.daemonbox.net.
> >
> > ; Machine Names
> > localhost   IN  A   127.0.0.1
> > chadwick   IN  A   66.246.140.170
> > mail  IN  A   66.246.246.58
> > www IN  A   66.246.140.170
> > @IN  A   66.246.140.170
> >
> > ; Aliases
> > www IN  CNAME   @
>
>

Found it. If you notice, I had an A record and a CNAME record for www.
Though it still doesn't seem to like this:

www  IN  A   66.246.140.170
@ IN CNAME www

Either way, I've decided to just not use the CNAME record. Thanks to
everyone for all their help!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
David Stanford wrote:
> On 7/25/06, Mikhail Goriachev <[EMAIL PROTECTED]> wrote:
>> David Stanford wrote:
 I've tried everyone's suggestions to no avail. Here's my actual
>>> configuration:
>>>
>>> [EMAIL PROTECTED] ~]# /etc/rc.d/named stop
>>> Stopping named.
>>> [EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf
>>
>> I can't stop mine and then start it again (running in chrooted mode). I
>> do:
>>
>> # make rndc reload
> 
> 
> Isn't named's default behaviour to run chrooted? It appears so whn looking
> at the rc script.


Yep, it is. I got burnt a few times using stop and start in the past.
That is why I only use 'rndc reload'.


> Also, when something goes wrong, named won't reload but logs a complaint
>> into /var/log/messages. So it is a good idea to check logs every time a
>> change is made.
>>
>>
>>> zone "daemonbox.net" {
>>> type master;
>>> file "master/daemonbox.net";
>>> };
>>>
>>> /*
>>> zone "140.246.66.in-addr.arpa" {
>>> type master;
>>> file "master/140.246.66.in-addr.arpa";
>>> };
>>> */
>>> [EMAIL PROTECTED] ~]# cat /etc/namedb/master/daemonbox.net
>>> $TTL 3600; 1 hour
>>> daemonbox.net.  IN  SOA chadwick.daemonbox.net.
>>> dstanford.daemonbox.net. (
>>> 2006072400  ; Serial
>>   ^^
>>   ^^
>> Make sure your serial increments with every change you make.
> 
> 
> I've been ignoring that to save time while troubleshooting as (from my
> understanding) it  is only used by  other name servers so they know to
> update their information:
> 
> "The serial number identifies this version of the zone configuration. Remote
> name servers
> first retreive the SOA record and check if the serial number has incremented
> before
> deciding whether to access the rest of the zone, which could be large. Make
> sure you
> increment this field every time you edit the file. If you don't, your
> updates will not
> propagate to other name servers."   -The Complete FreeBSD, Greg Lehey


Good point. I also got burnt with this one a few times in the past...
now incrementing is my habit. I guess its use depends on the weather.


>> 1d  ; Refresh
>>> 2h  ; Retry
>>> 100d; Expire
>>> 1h ); Minimum TTL
>>>
>>>
>>> ; DNS Servers
>>> @   IN  NS  chadwick.daemonbox.net.
>>> @   IN  NS  ns1.nac.net.
>>> @   IN  NS  ns2.nac.net.
>>
>> Remove/comment those nac.net servers just in case (just for now while
>> testing). Get yours cranking first.
> 
> 
> Good point.
> 
>> ; MX Records
>>> IN  MX 10   mail.daemonbox.net.
>>>
>>> ; Machine Names
>>> localhost   IN  A   127.0.0.1
>>> chadwick   IN  A   66.246.140.170
>>> mail  IN  A   66.246.246.58
>>> www IN  A   66.246.140.170
>>> @IN  A   66.246.140.170
>>>
>>> ; Aliases
>>> www IN  CNAME   @
>>
>> I personally wouldn't use that line. Previous 2 lines are sufficient.
> 
> 
> Yea, I feel I may just use the A records as the additional query issue you
> mentioned previously leaves me thinking it's the better configuration...it
> still bothers me I can't figure it out though. :-/


Not sure what you mean.


>> [EMAIL PROTECTED] ~]# /etc/rc.d/named start
>>> Starting named.
>>
>> Check your logs.
> 
> 
> I've been checking /var/log/messages but see nothing after recieving that
> error. Are all named logs placed here by default?


This is the only place where I look. As far as I'm concerned, if a
reload was unsuccessful, then you'll get something in there. Otherwise
nothing gets logged.


>> [EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
>>> Using domain server:
>>> Name: localhost
>>> Address: 127.0.0.1#53
>>> Aliases:
>>>
>>> Host daemonbox.net not found: 2(SERVFAIL)
>>>
>>>
>>> Does anyone see anything wrong with this? Thanks for all your help!
>>
>> Can you resolve other domains (e.g.: freebsd.org)? Can't think of
>> anything else right now.
> 
> 
> Yes, as I noted, when  I remove the CNAME entry everything works fine. Very
> strange...


Not sure about that either. I guess you shouldn't use it then. Anyway,
at least your domain is responding now:


$ host -t a daemonbox.net chadwick.daemonbox.net
Using domain server:
Name: chadwick.daemonbox.net
Address: 66.246.140.170#53
Aliases:

daemonbox.net has address 66.246.140.170

$ host -t a www.daemonbox.net chadwick.daemonbox.net
Using domain server:
Name: chadwick.daemonbox.net
Address: 66.246.140.170#53
Aliases:

www.daemonbox.net has address 66.246.140.170


http://www.dnsreport.com/tools/dnsreport.ch?domain=daemonbox.net


www.dnsreport.com is a great tool for all your DNS needs.




Cheers,
Mikhail.

Re: Simple DNS Configuration

2006-07-24 Thread David Stanford

On 7/25/06, Mikhail Goriachev <[EMAIL PROTECTED]> wrote:


David Stanford wrote:
>> I've tried everyone's suggestions to no avail. Here's my actual
> configuration:
>
> [EMAIL PROTECTED] ~]# /etc/rc.d/named stop
> Stopping named.
> [EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf


I can't stop mine and then start it again (running in chrooted mode). I
do:

# make rndc reload



Isn't named's default behaviour to run chrooted? It appears so whn looking
at the rc script.

Also, when something goes wrong, named won't reload but logs a complaint

into /var/log/messages. So it is a good idea to check logs every time a
change is made.


>
> zone "daemonbox.net" {
> type master;
> file "master/daemonbox.net";
> };
>
> /*
> zone "140.246.66.in-addr.arpa" {
> type master;
> file "master/140.246.66.in-addr.arpa";
> };
> */
> [EMAIL PROTECTED] ~]# cat /etc/namedb/master/daemonbox.net
> $TTL 3600; 1 hour
> daemonbox.net.  IN  SOA chadwick.daemonbox.net.
> dstanford.daemonbox.net. (
> 2006072400  ; Serial
  ^^
  ^^
Make sure your serial increments with every change you make.



I've been ignoring that to save time while troubleshooting as (from my
understanding) it  is only used by  other name servers so they know to
update their information:

"The serial number identifies this version of the zone configuration. Remote
name servers
first retreive the SOA record and check if the serial number has incremented
before
deciding whether to access the rest of the zone, which could be large. Make
sure you
increment this field every time you edit the file. If you don't, your
updates will not
propagate to other name servers."   -The Complete FreeBSD, Greg Lehey


1d  ; Refresh
> 2h  ; Retry
> 100d; Expire
> 1h ); Minimum TTL
>
>
> ; DNS Servers
> @   IN  NS  chadwick.daemonbox.net.
> @   IN  NS  ns1.nac.net.
> @   IN  NS  ns2.nac.net.


Remove/comment those nac.net servers just in case (just for now while
testing). Get yours cranking first.



Good point.


; MX Records
> IN  MX 10   mail.daemonbox.net.
>
> ; Machine Names
> localhost   IN  A   127.0.0.1
> chadwick   IN  A   66.246.140.170
> mail  IN  A   66.246.246.58
> www IN  A   66.246.140.170
> @IN  A   66.246.140.170
>
> ; Aliases
> www IN  CNAME   @


I personally wouldn't use that line. Previous 2 lines are sufficient.



Yea, I feel I may just use the A records as the additional query issue you
mentioned previously leaves me thinking it's the better configuration...it
still bothers me I can't figure it out though. :-/


[EMAIL PROTECTED] ~]# /etc/rc.d/named start
> Starting named.


Check your logs.



I've been checking /var/log/messages but see nothing after recieving that
error. Are all named logs placed here by default?


[EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
> Using domain server:
> Name: localhost
> Address: 127.0.0.1#53
> Aliases:
>
> Host daemonbox.net not found: 2(SERVFAIL)
>
>
> Does anyone see anything wrong with this? Thanks for all your help!


Can you resolve other domains (e.g.: freebsd.org)? Can't think of
anything else right now.



Yes, as I noted, when  I remove the CNAME entry everything works fine. Very
strange...

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
Mikhail Goriachev wrote:
> David Stanford wrote:
>>> I've tried everyone's suggestions to no avail. Here's my actual
>> configuration:
>>
>> [EMAIL PROTECTED] ~]# /etc/rc.d/named stop
>> Stopping named.
>> [EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf
> 
> 
> I can't stop mine and then start it again (running in chrooted mode). I do:
> 
> # make rndc reload


Oops, I meant:

# rndc reload




-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
David Stanford wrote:
>> I've tried everyone's suggestions to no avail. Here's my actual
> configuration:
> 
> [EMAIL PROTECTED] ~]# /etc/rc.d/named stop
> Stopping named.
> [EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf


I can't stop mine and then start it again (running in chrooted mode). I do:

# make rndc reload

Also, when something goes wrong, named won't reload but logs a complaint
into /var/log/messages. So it is a good idea to check logs every time a
change is made.


> 
> zone "daemonbox.net" {
> type master;
> file "master/daemonbox.net";
> };
> 
> /*
> zone "140.246.66.in-addr.arpa" {
> type master;
> file "master/140.246.66.in-addr.arpa";
> };
> */
> [EMAIL PROTECTED] ~]# cat /etc/namedb/master/daemonbox.net
> $TTL 3600; 1 hour
> daemonbox.net.  IN  SOA chadwick.daemonbox.net.
> dstanford.daemonbox.net. (
> 2006072400  ; Serial
  ^^
  ^^
Make sure your serial increments with every change you make.



> 1d  ; Refresh
> 2h  ; Retry
> 100d; Expire
> 1h ); Minimum TTL
> 
> 
> ; DNS Servers
> @   IN  NS  chadwick.daemonbox.net.
> @   IN  NS  ns1.nac.net.
> @   IN  NS  ns2.nac.net.


Remove/comment those nac.net servers just in case (just for now while
testing). Get yours cranking first.


> ; MX Records
> IN  MX 10   mail.daemonbox.net.
> 
> ; Machine Names
> localhost   IN  A   127.0.0.1
> chadwick   IN  A   66.246.140.170
> mail  IN  A   66.246.246.58
> www IN  A   66.246.140.170
> @IN  A   66.246.140.170
> 
> ; Aliases
> www IN  CNAME   @


I personally wouldn't use that line. Previous 2 lines are sufficient.


> [EMAIL PROTECTED] ~]# /etc/rc.d/named start
> Starting named.


Check your logs.


> [EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
> Using domain server:
> Name: localhost
> Address: 127.0.0.1#53
> Aliases:
> 
> Host daemonbox.net not found: 2(SERVFAIL)
> 
> 
> Does anyone see anything wrong with this? Thanks for all your help!


Can you resolve other domains (e.g.: freebsd.org)? Can't think of
anything else right now.


Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
Matthias Fechner wrote:
> Hi David,
> 
> David Stanford wrote:
>> Now it appears to be working correctly and responding to queries, however
>> I'm noticing I continue to get that same error when I add my CNAME entry:
>> =
>> @  IN   CNAMEwww.example.org.
>> =
> 
> write:
> www   IN  CNAME   example.org.


I wouldn't recommend using CNAME for www due to extra DNS lookups[1].


Cheers,
Mikhail.

See bottom of the page:
[1] - http://www.dnsreport.com/tools/dnsreport.ch?domain=microsoft.com

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Beech Rintoul
On Monday 24 July 2006 15:10, David Stanford wrote:
> On 7/24/06, Derek Ragona <[EMAIL PROTECTED]> wrote:
> >  Check your /etc/nsswitch.conf file.  You want the line for hosts to be:
> > dns files
> >
> > Also be sure named is running.  While it says it is starting do a:
> > ps -ax|grep name
> >
> > -Derek
>
> Derek,
>
> nsswitch.conf hasn't been modified from the default:
> [EMAIL PROTECTED] ~]# cat /etc/nsswitch.conf
> group: compat
> group_compat: nis
> hosts: files dns
> networks: files
> passwd: compat
> passwd_compat: nis
> shells: files
>
> And I've been verifying named is running after every stop/start of the rc
> script:
> [EMAIL PROTECTED] ~]# ps aux|grep named
> bind  26207  4.1  0.2  4060  3328  ??  Ss7:09PM
> 0:00.08/usr/sbin/named -t /var/named -u bind
> root  10645  0.0  0.0  1300   952  ??  Ss6:09AM
> 0:02.08/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s
>
> There has to be something I'm missing as I've set this is up in the exact
> same manner on a dev box at home using the same named.conf and master
> files, and still yield the same results.
>
> -David

I have the same problem as you trying to do that by hand. I even have the 
O'Reilly book on dns. As a suggestion, you might install webmin. It does a 
very good job managing bind. I even used it at an ISP I worked for and really 
liked it. We had 300+ virtual domains and editing all the files by hand was a 
nightmare when something changed.

just my .02

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
---













pgpXMyFEn0O3K.pgp
Description: PGP signature


Re: Simple DNS Configuration

2006-07-24 Thread David Stanford

On 7/24/06, Derek Ragona <[EMAIL PROTECTED]> wrote:


 Check your /etc/nsswitch.conf file.  You want the line for hosts to be:
dns files

Also be sure named is running.  While it says it is starting do a:
ps -ax|grep name

-Derek



Derek,

nsswitch.conf hasn't been modified from the default:
[EMAIL PROTECTED] ~]# cat /etc/nsswitch.conf
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files

And I've been verifying named is running after every stop/start of the rc
script:
[EMAIL PROTECTED] ~]# ps aux|grep named
bind  26207  4.1  0.2  4060  3328  ??  Ss7:09PM
0:00.08/usr/sbin/named -t /var/named -u bind
root  10645  0.0  0.0  1300   952  ??  Ss6:09AM
0:02.08/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s

There has to be something I'm missing as I've set this is up in the exact
same manner on a dev box at home using the same named.conf and master files,
and still yield the same results.

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Derek Ragona

Check your /etc/nsswitch.conf file.  You want the line for hosts to be:
dns files

Also be sure named is running.  While it says it is starting do a:
ps -ax|grep name

-Derek


At 04:53 PM 7/24/2006, David Stanford wrote:

On 7/24/06, Matthias Fechner <[EMAIL PROTECTED]> wrote:


Hi David,

David Stanford wrote:
> Now it appears to be working correctly and responding to queries,
however
> I'm noticing I continue to get that same error when I add my CNAME
entry:
> =
> @  IN   CNAMEwww.example.org.
> =

write:
www IN  CNAME   example.org.



Best regards,
Matthias

I've tried everyone's suggestions to no avail. Here's my actual

configuration:

[EMAIL PROTECTED] ~]# /etc/rc.d/named stop
Stopping named.
[EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf

zone "daemonbox.net" {
   type master;
   file "master/daemonbox.net";
};

/*
zone "140.246.66.in-addr.arpa" {
   type master;
   file "master/140.246.66.in-addr.arpa";
};
*/
[EMAIL PROTECTED] ~]# cat /etc/namedb/master/daemonbox.net
$TTL 3600; 1 hour
daemonbox.net.  IN  SOA chadwick.daemonbox.net.
dstanford.daemonbox.net. (
   2006072400  ; Serial
   1d  ; Refresh
   2h  ; Retry
   100d; Expire
   1h ); Minimum TTL


; DNS Servers
@   IN  NS  chadwick.daemonbox.net.
@   IN  NS  ns1.nac.net.
@   IN  NS  ns2.nac.net.

; MX Records
   IN  MX 10   mail.daemonbox.net.

; Machine Names
localhost   IN  A   127.0.0.1
chadwick   IN  A   66.246.140.170
mail  IN  A   66.246.246.58
www IN  A   66.246.140.170
@IN  A   66.246.140.170

; Aliases
www IN  CNAME   @
[EMAIL PROTECTED] ~]# /etc/rc.d/named start
Starting named.
[EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Host daemonbox.net not found: 2(SERVFAIL)


Does anyone see anything wrong with this? Thanks for all your help!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
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: Simple DNS Configuration

2006-07-24 Thread David Stanford

On 7/24/06, Matthias Fechner <[EMAIL PROTECTED]> wrote:


Hi David,

David Stanford wrote:
> Now it appears to be working correctly and responding to queries,
however
> I'm noticing I continue to get that same error when I add my CNAME
entry:
> =
> @  IN   CNAMEwww.example.org.
> =

write:
www IN  CNAME   example.org.



Best regards,
Matthias

I've tried everyone's suggestions to no avail. Here's my actual

configuration:

[EMAIL PROTECTED] ~]# /etc/rc.d/named stop
Stopping named.
[EMAIL PROTECTED] ~]# tail -12 /etc/namedb/named.conf

zone "daemonbox.net" {
   type master;
   file "master/daemonbox.net";
};

/*
zone "140.246.66.in-addr.arpa" {
   type master;
   file "master/140.246.66.in-addr.arpa";
};
*/
[EMAIL PROTECTED] ~]# cat /etc/namedb/master/daemonbox.net
$TTL 3600; 1 hour
daemonbox.net.  IN  SOA chadwick.daemonbox.net.
dstanford.daemonbox.net. (
   2006072400  ; Serial
   1d  ; Refresh
   2h  ; Retry
   100d; Expire
   1h ); Minimum TTL


; DNS Servers
@   IN  NS  chadwick.daemonbox.net.
@   IN  NS  ns1.nac.net.
@   IN  NS  ns2.nac.net.

; MX Records
   IN  MX 10   mail.daemonbox.net.

; Machine Names
localhost   IN  A   127.0.0.1
chadwick   IN  A   66.246.140.170
mail  IN  A   66.246.246.58
www IN  A   66.246.140.170
@IN  A   66.246.140.170

; Aliases
www IN  CNAME   @
[EMAIL PROTECTED] ~]# /etc/rc.d/named start
Starting named.
[EMAIL PROTECTED] ~]# host -t a daemonbox.net localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Host daemonbox.net not found: 2(SERVFAIL)


Does anyone see anything wrong with this? Thanks for all your help!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Matthias Fechner
Hi David,

David Stanford wrote:
> Now it appears to be working correctly and responding to queries, however
> I'm noticing I continue to get that same error when I add my CNAME entry:
> =
> @  IN   CNAMEwww.example.org.
> =

write:
www IN  CNAME   example.org.



Best regards,
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

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


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
David Stanford wrote:
> 
> Thanks Mikhail, that was it:
> =
> @   IN  NS  ns.example.org.
> =


No worries, glad to hear it's cranking.


> Now it appears to be working correctly and responding to queries, however
> I'm noticing I continue to get that same error when I add my CNAME entry:
> =
> @  IN   CNAMEwww.example.org.
> =


Hmmm... Not sure how that one goes.


> Doesn't the "@" simply represent the domain, in this case "example.org"?


Yes, that's correct.


> That makes this translate from example.org -> www.example.org, correct?


The following gives you the result you want:

@   IN A192.168.1.1 ; whatever your www's IP is

So your DNS will respond with the same IP no matter if it's example.org
or www.example.org (assuming www has been declared somewhere as well).

Hopefully this helps.


Cheers,
Mikhail.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread David Stanford

On 7/24/06, Mikhail Goriachev <[EMAIL PROTECTED]> wrote:


Hi,

Try this and let us know how it goes.



$ORIGIN example.org.
> $TTL 3600; 1 hour
> example.org.  IN  SOAns.example.org. admin.example.org. (
> 2006072400  ; Serial
> 1d; Refresh
> 2h; Retry
> 100d ; Expire
> 1h )  ; Minimum TTL
>
@   IN  NS  ns.example.org.
IN  A   192.168.1.1 ; or whatever your IP is.
>
> ; Machine Names
> localhost IN  A   127.0.0.1
> host1 IN  A   192.168.1.1
> host2 IN  A   192.168.1.2
> host3 IN  A   192.168.1.3
> =


Cheers,
Mikhail.

--
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B



Thanks Mikhail, that was it:
=
@   IN  NS  ns.example.org.
=

Now it appears to be working correctly and responding to queries, however
I'm noticing I continue to get that same error when I add my CNAME entry:
=
@  IN   CNAMEwww.example.org.
=

Doesn't the "@" simply represent the domain, in this case "example.org"?
That makes this translate from example.org -> www.example.org, correct?

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-24 Thread Mikhail Goriachev
Hi,

Try this and let us know how it goes.



$ORIGIN example.org.
> $TTL 3600; 1 hour
> example.org.  IN  SOAns.example.org. admin.example.org. (
> 2006072400  ; Serial
> 1d; Refresh
> 2h; Retry
> 100d ; Expire
> 1h )  ; Minimum TTL
> 
@   IN  NS  ns.example.org.
IN  A   192.168.1.1 ; or whatever your IP is.
> 
> ; Machine Names
> localhost IN  A   127.0.0.1
> host1 IN  A   192.168.1.1
> host2 IN  A   192.168.1.2
> host3 IN  A   192.168.1.3
> =


Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Simple DNS Configuration

2006-07-24 Thread David Stanford

Hi all,

I feel like I'm losing my mind here. It's been a while since I configured
named and I can't quite figure out what I'm doing wrong here. Here is my
understanding of what is "needed" to get (a very basic configuration of)
named running with a few A records in place:

# sh make-localhost

append default named.conf with:
=
zone "example.org" {
   type master;
   file "master/example.org";
};
=

create master/example.org with:
=
$TTL 3600; 1 hour
example.org.  IN  SOAns.example.org. admin.example.org. (
   2006072400  ; Serial
   1d; Refresh
   2h; Retry
   100d ; Expire
   1h )  ; Minimum TTL


; Machine Names
localhost   IN  A   127.0.0.1
host1IN  A   192.168.1.1
host2IN  A   192.168.1.2
host3IN  A   192.168.1.3
=

append rc.conf with:
=
named_enable="YES"
=

# reboot


Is there something I'm missing? This is on a fresh 6.1 install (rebuilt with
latest src) and a few random ports installed (editors and such) and no
firewall config.

[EMAIL PROTECTED] ~]# uname -sri
FreeBSD 6.1-RELEASE-p3 GENERIC

[EMAIL PROTECTED] ~]# host -t a example.org localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Host example.org not found: 2(SERVFAIL)

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"