Re: Problem setting up DNS

2007-12-25 Thread Unga

--- Sdävtaker [EMAIL PROTECTED] wrote:

 Hello, im using FBSD 6.2
 
 I got 2 domains registered in the local nic and I
 could get one working 
 but the second one doesnt :-/
 This is my first attemp to set up a real DNS, so im
 pretty sure i did 
 something wrong, i copy/pasted here all the info i
 think can be usefull, 
 i can add more data if necesary.
 BTW, sorry for my english, it is not my main
 language.
 Thanks for any help.
 Sdav
 

Hi Merry Christmas

This can be used as a guide:
https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Deployment_Guide/ch-bind.html

You may need to adjust /etc/rc.d/named accordingly.

Regards
Unga




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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


Re: Problem setting up DNS

2007-12-25 Thread Gelsema, P (Patrick)
On Tue, December 25, 2007 07:39, Sdävtaker wrote:
 Hello, im using FBSD 6.2

 I got 2 domains registered in the local nic and I could get one working
 but the second one doesnt :-/
 This is my first attemp to set up a real DNS, so im pretty sure i did
 something wrong, i copy/pasted here all the info i think can be usefull,
 i can add more data if necesary.
 BTW, sorry for my english, it is not my main language.
 Thanks for any help.
 Sdav


Sounds like somewhere you got a }; on the wrong line.

named-checkconf is your friend for checking the config file.
named-checkzone for your zone files.

Rgds,

Patrick


 Info:

 I got this in named.conf:
 (...)
 zone unhost.com.ar {
  type master;
  file master/unhost.com.ar;
   allow-transfer {
  202.157.182.142;
  };
 };

 zone sacrarium.com.ar {
  type master;
  file master/sacrarium.com.ar;
  allow-transfer {
   202.157.182.142;
  };
 };
 (...)

 The first one is working the second one is not.
 In nic.ar both point to ns1.unhost.com.ar and 202.157.182.142
 (twisted4life free secondary)

 the Zone files are:
 master/unhost.com.ar:
 $TTL 86400; 1 day
 unhost.com.ar.IN  SOA  ns1.unhost.com.ar. admin.unhost.com.ar.
 (
  2007102801  ; Serial
  10800   ; Refresh
  3600; Retry
  604800  ; Expire
  86400   ; Minimum TTL
  )

 ; DNS Servers
  IN  NS  ns1.unhost.com.ar.

 ; MX Records
  IN  MX 10   mx.unhost.com.ar.
  IN  A   190.2.50.197

 ; Machine Names
 ns1 IN  A   190.2.50.197
 mx  IN  A   190.2.50.197
 ftp IN  A   190.2.50.197

 ; Aliases
 www IN  CNAME   @


 and  master/sacrarium.com.ar  say:
 $TTL 86400; 1 day
 sacrarium.com.ar.IN  SOA  ns1.unhost.com.ar.
 admin.unhost.com.ar. (
  2007102801  ; Serial
  10800   ; Refresh
  3600; Retry
  604800  ; Expire
  86400   ; Minimum TTL
  )

 ; MX Records
  IN  MX 10   mx.unhost.com.ar.

 ; Machine Names
 www IN  A   190.2.50.197


 When i do:
 nslookup www.unhost.com.ar
 Server: 200.69.193.1
 Address:200.69.193.1#53

 Non-authoritative answer:
 www.unhost.com.ar   canonical name = unhost.com.ar.
 Name:   unhost.com.ar
 Address: 190.2.50.197

 nslookup www.sacrarium.com.ar
 Server: 200.69.193.1
 Address:200.69.193.1#53

 ** server can't find www.sacrarium.com.ar: SERVFAIL

 when dig:
 dig @unhost.com.ar www

 ;  DiG 9.3.3  @unhost.com.ar www
 ; (1 server found)
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 38338
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

 ;; QUESTION SECTION:
 ;www.   IN  A

 ;; AUTHORITY SECTION:
 .   10437   IN  SOA a.root-servers.net.
 nstld.verisign-grs.com. 2007122401 1800 900 604800 86400

 ;; Query time: 2 msec
 ;; SERVER: 190.2.50.197#53(190.2.50.197)
 ;; WHEN: Tue Dec 25 03:34:23 2007
 ;; MSG SIZE  rcvd: 96

 dig @unhost.com.ar sacrarium.com.ar

 ;  DiG 9.3.3  @unhost.com.ar sacrarium.com.ar
 ; (1 server found)
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 17321
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

 ;; QUESTION SECTION:
 ;sacrarium.com.ar.  IN  A

 ;; Query time: 2 msec
 ;; SERVER: 190.2.50.197#53(190.2.50.197)
 ;; WHEN: Tue Dec 25 03:34:40 2007
 ;; MSG SIZE  rcvd: 34

   dig sacrarium.com.ar

 ;  DiG 9.3.3  sacrarium.com.ar
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 62816
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

 ;; QUESTION SECTION:
 ;sacrarium.com.ar.  IN  A

 ;; Query time: 451 msec
 ;; SERVER: 200.69.193.1#53(200.69.193.1)
 ;; WHEN: Tue Dec 25 03:35:01 2007
 ;; MSG SIZE  rcvd: 34
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


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


Re: Problem setting up DNS

2007-12-25 Thread Ian Smith
On Tue, 25 Dec 2007 03:39:31 -0300 Sd?vtaker [EMAIL PROTECTED] wrote:
  Hello, im using FBSD 6.2
  
  I got 2 domains registered in the local nic and I could get one working 
  but the second one doesnt :-/
  This is my first attemp to set up a real DNS, so im pretty sure i did 
  something wrong, i copy/pasted here all the info i think can be usefull, 
  i can add more data if necesary.
  BTW, sorry for my english, it is not my main language.
  Thanks for any help.
  Sdav
  
  Info:
  
  I got this in named.conf:
  (...)
  zone unhost.com.ar {
   type master;
   file master/unhost.com.ar;
   allow-transfer {
   202.157.182.142;
   };
  };
  
  zone sacrarium.com.ar {
   type master;
   file master/sacrarium.com.ar;
   allow-transfer {
   202.157.182.142;
   };
  };
  (...)
  
  The first one is working the second one is not.
  In nic.ar both point to ns1.unhost.com.ar and 202.157.182.142 
  (twisted4life free secondary)
  
  the Zone files are:
  master/unhost.com.ar:
  $TTL 86400; 1 day
  unhost.com.ar.IN  SOA  ns1.unhost.com.ar. admin.unhost.com.ar. (
   2007102801  ; Serial
   10800   ; Refresh
   3600; Retry
   604800  ; Expire
   86400   ; Minimum TTL
   )
  
  ; DNS Servers
   IN  NS  ns1.unhost.com.ar.

You need to list your secondary nameserver here as well, by name not IP,
to match the nameservers listed at your NIC.  Make sure it's refreshing
the zone whenever you update it, given up to 3+ hours (10800s) to do so.

Don't forget to increment the Serial whenever you make any changes to
your zone.  You may also want to reduce your TTL down to say 3600 until
it's all working fine and things have propogated out to the world.

And each zone should have:

localhost  IN   A   127.0.0.1

  ; MX Records
   IN  MX 10   mx.unhost.com.ar.
   IN  A   190.2.50.197

You'll want to make sure the reverse zone file has mx.unhost.com.ar. for
190.2.50.197 too, whether you or you service provider controls that.

  ; Machine Names
  ns1 IN  A   190.2.50.197
  mx  IN  A   190.2.50.197
  ftp IN  A   190.2.50.197
  
  ; Aliases
  www IN  CNAME   @
  
  
  and  master/sacrarium.com.ar  say:
  $TTL 86400; 1 day
  sacrarium.com.ar.IN  SOA  ns1.unhost.com.ar. 
  admin.unhost.com.ar. (
   2007102801  ; Serial
   10800   ; Refresh
   3600; Retry
   604800  ; Expire
   86400   ; Minimum TTL
   )
  
  ; MX Records
   IN  MX 10   mx.unhost.com.ar.

Oops, you've left out the NS records ..

  ; Machine Names
  www IN  A   190.2.50.197
  
  
  When i do:
  nslookup www.unhost.com.ar
  Server: 200.69.193.1
  Address:200.69.193.1#53
  
  Non-authoritative answer:
  www.unhost.com.ar   canonical name = unhost.com.ar.
  Name:   unhost.com.ar
  Address: 190.2.50.197
  
  nslookup www.sacrarium.com.ar
  Server: 200.69.193.1
  Address:200.69.193.1#53
  
  ** server can't find www.sacrarium.com.ar: SERVFAIL

Yeah, no nameservers listed in the primary zone file.  At least one and
should be two ..

[..]

cheers, Ian

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


Problem setting up DNS

2007-12-24 Thread Sdävtaker

Hello, im using FBSD 6.2

I got 2 domains registered in the local nic and I could get one working 
but the second one doesnt :-/
This is my first attemp to set up a real DNS, so im pretty sure i did 
something wrong, i copy/pasted here all the info i think can be usefull, 
i can add more data if necesary.

BTW, sorry for my english, it is not my main language.
Thanks for any help.
Sdav

Info:

I got this in named.conf:
(...)
zone unhost.com.ar {
type master;
file master/unhost.com.ar;
allow-transfer {
202.157.182.142;
};
};

zone sacrarium.com.ar {
type master;
file master/sacrarium.com.ar;
allow-transfer {
202.157.182.142;
};
};
(...)

The first one is working the second one is not.
In nic.ar both point to ns1.unhost.com.ar and 202.157.182.142 
(twisted4life free secondary)


the Zone files are:
master/unhost.com.ar:
$TTL 86400; 1 day
unhost.com.ar.IN  SOA  ns1.unhost.com.ar. admin.unhost.com.ar. (
2007102801  ; Serial
10800   ; Refresh
3600; Retry
604800  ; Expire
86400   ; Minimum TTL
)

; DNS Servers
IN  NS  ns1.unhost.com.ar.

; MX Records
IN  MX 10   mx.unhost.com.ar.
IN  A   190.2.50.197

; Machine Names
ns1 IN  A   190.2.50.197
mx  IN  A   190.2.50.197
ftp IN  A   190.2.50.197

; Aliases
www IN  CNAME   @


and  master/sacrarium.com.ar  say:
$TTL 86400; 1 day
sacrarium.com.ar.IN  SOA  ns1.unhost.com.ar. 
admin.unhost.com.ar. (

2007102801  ; Serial
10800   ; Refresh
3600; Retry
604800  ; Expire
86400   ; Minimum TTL
)

; MX Records
IN  MX 10   mx.unhost.com.ar.

; Machine Names
www IN  A   190.2.50.197


When i do:
nslookup www.unhost.com.ar
Server: 200.69.193.1
Address:200.69.193.1#53

Non-authoritative answer:
www.unhost.com.ar   canonical name = unhost.com.ar.
Name:   unhost.com.ar
Address: 190.2.50.197

nslookup www.sacrarium.com.ar
Server: 200.69.193.1
Address:200.69.193.1#53

** server can't find www.sacrarium.com.ar: SERVFAIL

when dig:
dig @unhost.com.ar www

;  DiG 9.3.3  @unhost.com.ar www
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 38338
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;www.   IN  A

;; AUTHORITY SECTION:
.   10437   IN  SOA a.root-servers.net. 
nstld.verisign-grs.com. 2007122401 1800 900 604800 86400


;; Query time: 2 msec
;; SERVER: 190.2.50.197#53(190.2.50.197)
;; WHEN: Tue Dec 25 03:34:23 2007
;; MSG SIZE  rcvd: 96

dig @unhost.com.ar sacrarium.com.ar

;  DiG 9.3.3  @unhost.com.ar sacrarium.com.ar
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 17321
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;sacrarium.com.ar.  IN  A

;; Query time: 2 msec
;; SERVER: 190.2.50.197#53(190.2.50.197)
;; WHEN: Tue Dec 25 03:34:40 2007
;; MSG SIZE  rcvd: 34

 dig sacrarium.com.ar

;  DiG 9.3.3  sacrarium.com.ar
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 62816
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;sacrarium.com.ar.  IN  A

;; Query time: 451 msec
;; SERVER: 200.69.193.1#53(200.69.193.1)
;; WHEN: Tue Dec 25 03:35:01 2007
;; MSG SIZE  rcvd: 34
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]