DNS issues.

Discussion in 'Installation/Configuration' started by woleium, Mar 9, 2007.

  1. woleium

    woleium New Member

    I am having problems with our DNS, with records not being served. Its easier to show you than to explain:


    Code:
    [[email protected] named]# pwd
    /var/named/chroot/var/named
    [[email protected] named]# cat pri.MYDOMAIN.COM
    $TTL        86400
    @       IN      SOA     ns1.MYISP.com. admin.MYDOMAIN.COM. (
                            2007030902       ; serial, todays date + todays serial #
                            28800              ; refresh, seconds
                            7200              ; retry, seconds
                            604800              ; expire, seconds
                            86400 )            ; minimum, seconds
    ;
                    NS      ns1.MYISP.com.              ; Inet Address of name server 1
                    NS      ns2.MYISP.com.              ; Inet Address of name server 2
    ;
    
      MX      20 mx.XXX.net.
    fri  MX      20 www.XXXY.org.
    par  MX      20 www.XXXY.org.
    boa  MX      20 www.XXXY.org.
      MX      10 www.XXXY.org.
    
    MYDOMAIN.COM.      A        256.256.256.256
    www       A       256.256.256.256
    boa       A       256.256.256.256
    www.fri       A       256.256.256.256
    fri       A       256.256.256.256
    www.boa       A       256.256.256.256
    www.par       A       256.256.256.256
    par       A       256.256.256.256
    
    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
    
    webm         A       256.256.256.227
    im              A       256.256.256.227
    mun             A       256.256.256.228
    int        A       256.256.256.228
    
    
    _sip._udp.MYDOMAIN.COM. 21600 IN SRV 10 0 5060 im.MYDOMAIN.COM.
    _sip._tcp.MYDOMAIN.COM. 21600 IN SRV 10 0 5060 im.MYDOMAIN.COM.
    _iax._tcp.MYDOMAIN.COM. 21600 IN SRV 10 0 4569 im.MYDOMAIN.COM.
    _iax._udp.MYDOMAIN.COM. 21600 IN SRV 10 0 4569 im.MYDOMAIN.COM.
    _xmpp-server._tcp.MYDOMAIN.COM. 21600 IN SRV 20 0 5269 im.MYDOMAIN.COM.
    _xmpp-client._tcp.MYDOMAIN.COM. 21600 IN SRV 5 0 5222 im.MYDOMAIN.COM.
    _jabber._tcp.MYDOMAIN.COM. 21600 IN SRV 20 0 5269 im.MYDOMAIN.COM.
    [[email protected] named]#
    
    BUT

    Code:
    [[email protected] ~]#
    [[email protected] ~]# clear
    [[email protected] ~]# /etc/init.d/named restart
    Stopping named:                                            [  OK  ]
    Starting named:                                            [  OK  ]
    [[email protected] ~]#
    [[email protected] ~]# nslookup
    >
    > server
    Default server: 127.0.0.1
    Address: 127.0.0.1#53
    >
    > set type=any
    >
    > MYDOMAIN.COM
    Server:         127.0.0.1
    Address:        127.0.0.1#53
    
    Name:   MYDOMAIN.COM
    Address: 256.256.256.256
    MYDOMAIN.COM
            origin = ns1.MYISP.com
            mail addr = admin.MYDOMAIN.COM
            serial = 2007030902
            refresh = 28800
            retry = 7200
            expire = 604800
            minimum = 86400
    MYDOMAIN.COM      nameserver = ns2.MYISP.com.
    MYDOMAIN.COM      nameserver = ns1.MYISP.com.
    MYDOMAIN.COM      mail exchanger = 20 mx.XXX.net.
    >
    
    i changed the mx value to 20 today (sucessfully), but when i added a new mx record at 10 it isn't showing up


    This one has me stumped, where have my svr and extra a records gone? why can't i add any new records?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please try dig instead of nslookup.
     
  3. woleium

    woleium New Member

    Dig result

    Thanks for looking falco.

    I deleted the
    Code:
       MX      20 mx.XXX.net. 
       MX      10 www.XXXY.org.
    records and replaced them with
    Code:
       MX      20 www.XXXY.org.
    from ispconfigs control panel as i needed to get mail working.

    Dig sees the srv records on a zone transfer, but not on a normal lookup, & they don't seem to be working. :confused:

    dig zone transfer result:
    Code:
    [[email protected] ~]#
    [[email protected] ~]# dig @127.0.0.1 MYDOMAIN.com -t AXFR
    
    ; <<>> DiG 9.2.4 <<>> @127.0.0.1 MYDOMAIN.com -t AXFR
    ;; global options:  printcmd
    MYDOMAIN.com.             86400   IN      SOA     ns1.MYISP.com. admin.MYDOMAIN.com. 2007030906 28800 7200 604800 86400
    MYDOMAIN.com.             86400   IN      A       256.256.256.256
    MYDOMAIN.com.             86400   IN      NS      ns1.MYISP.com.
    MYDOMAIN.com.             86400   IN      NS      ns2.MYISP.com.
    MYDOMAIN.com.             86400   IN      MX      20 www.XXXY.org.
    _iax._tcp.MYDOMAIN.com.   21600   IN      SRV     10 0 4569 im.MYDOMAIN.com.
    _jabber._tcp.MYDOMAIN.com. 21600  IN      SRV     20 0 5269 im.MYDOMAIN.com.
    _sip._tcp.MYDOMAIN.com.   21600   IN      SRV     10 0 5060 im.MYDOMAIN.com.
    _xmpp-client._tcp.MYDOMAIN.com. 21600 IN  SRV     5 0 5222 im.MYDOMAIN.com.
    _xmpp-server._tcp.MYDOMAIN.com. 21600 IN  SRV     20 0 5269 im.MYDOMAIN.com.
    _iax._udp.MYDOMAIN.com.   21600   IN      SRV     10 0 4569 im.MYDOMAIN.com.
    _sip._udp.MYDOMAIN.com.   21600   IN      SRV     10 0 5060 im.MYDOMAIN.com.
    boa.MYDOMAIN.com.    86400   IN      A       256.256.256.256
    boa.MYDOMAIN.com.    86400   IN      MX      20 www.XXXY.org
    www.boa.MYDOMAIN.com. 86400  IN      A       256.256.256.256
    fri.MYDOMAIN.com.     86400   IN      A       256.256.256.256
    fri.MYDOMAIN.com.     86400   IN      MX      20 www.XXXY.org
    www.fri.MYDOMAIN.com. 86400   IN      A       256.256.256.256
    im.MYDOMAIN.com.          86400   IN      A       256.256.256.227
    int.MYDOMAIN.com.    86400   IN      A       256.256.256.228
    mun.MYDOMAIN.com.         86400   IN      A       256.256.256.228
    par.MYDOMAIN.com.     86400   IN      A       256.256.256.256
    par.MYDOMAIN.com.     86400   IN      MX      20 www.XXXY.org
    www.par.MYDOMAIN.com. 86400   IN      A       256.256.256.256
    webm.MYDOMAIN.com.     86400   IN      A       256.256.256.227
    www.MYDOMAIN.com.         86400   IN      A       256.256.256.256
    MYDOMAIN.com.             86400   IN      SOA     ns1.MYISP.com. admin.MYDOMAIN.com. 2007030906 28800 7200 604800 86400
    ;; Query time: 21 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sat Mar 10 12:00:44 2007
    ;; XFR size: 27 records
    
    
    dig type any lookup:
    Code:
    [[email protected] ~]#
    [[email protected] ~]# dig @127.0.0.1 MYDOMAIN.com -t ANY
    
    ; <<>> DiG 9.2.4 <<>> @127.0.0.1 MYDOMAIN.com -t ANY
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64203
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;MYDOMAIN.com.                    IN      ANY
    
    ;; ANSWER SECTION:
    MYDOMAIN.com.             86400   IN      A       256.256.256.256
    MYDOMAIN.com.             86400   IN      SOA     ns1.MYISP.com. admin.MYDOMAIN.com. 2007030906 28800 7200 604800 86400
    MYDOMAIN.com.             86400   IN      NS      ns1.MYISP.com.
    MYDOMAIN.com.             86400   IN      NS      ns2.MYISP.com.
    MYDOMAIN.com.             86400   IN      MX      20 www.XXXY.org
    
    ;; ADDITIONAL SECTION:
    ns1.MYISP.com.    107285  IN      A       256.256.256.256	
    ns2.MYISP.com.    107285  IN      A       256.256.256.256
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(localhost)
    ;; WHEN: Sat Mar 10 12:23:50 2007
    ;; MSG SIZE  rcvd: 199
    
    [[email protected] ~]#
    
    
     
  4. woleium

    woleium New Member

    Hmmm

    It does work, I'm being an idiot, ignore me.

    :-$

    Code:
    [[email protected] ~]# dig @4.2.2.1 _xmpp-server._tcp.MYDOMAIN.com -t ANY
    
    ; <<>> DiG 9.2.4 <<>> @4.2.2.1 _xmpp-server._tcp.MYDOMAIN.com -t ANY
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1338
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;_xmpp-server._tcp.MYDOMAIN.com.   IN      ANY
    
    ;; ANSWER SECTION:
    _xmpp-server._tcp.MYDOMAIN.com. 21600 IN  SRV     5 0 5222 im.MYDOMAIN.com.
    
    ;; Query time: 140 msec
    ;; SERVER: 4.2.2.1#53(4.2.2.1)
    ;; WHEN: Sat Mar 10 14:20:15 2007
    ;; MSG SIZE  rcvd: 79
    
     

Share This Page