Please Verify my DNS Settings ???

Discussion in 'Server Operation' started by mkhurram92, Feb 12, 2011.

  1. mkhurram92

    mkhurram92 New Member

    hi all there ???

    Can anyone confirm my DNS Settings and specially MX Record Settings ???
    Following is output of different commands of Checking DNS.
    Pls Guide ???

    1. dig abc.com mx

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> abc.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20109
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

    ;; QUESTION SECTION:
    ;abc.com. IN MX

    ;; ANSWER SECTION:
    abc.com. 38400 IN MX 10 mailserver01.abc.com.

    ;; AUTHORITY SECTION:
    abc.com. 38400 IN NS mainserver.abc.com.

    ;; ADDITIONAL SECTION:
    mailserver01.abc.com. 38400 IN A 192.168.1.114
    mainserver.abc.com. 38400 IN A 192.168.1.108

    ;; Query time: 10 msec
    ;; SERVER: 192.168.1.108#53(192.168.1.108)
    ;; WHEN: Fri Feb 11 20:47:13 2011
    ;; MSG SIZE rcvd: 125

    ++++++++++++++++++++++++++++++
    2. dig abc.com any

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> abc.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12021
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 2

    ;; QUESTION SECTION:
    ;abc.com. IN ANY

    ;; ANSWER SECTION:
    abc.com. 38400 IN MX 10 mailserver01.abc.com.
    abc.com. 38400 IN A 192.168.1.108
    abc.com. 38400 IN SOA mainserver.abc.com. admin.abc.com.abc.com. 1297373721 10800 3600 604800 38400
    abc.com. 38400 IN NS mainserver.abc.com.

    ;; ADDITIONAL SECTION:
    mailserver01.abc.com. 38400 IN A 192.168.1.114
    mainserver.abc.com. 38400 IN A 192.168.1.108

    ;; Query time: 10 msec
    ;; SERVER: 192.168.1.108#53(192.168.1.108)
    ;; WHEN: Fri Feb 11 20:51:22 2011
    ;; MSG SIZE rcvd: 205

    +++++++++++++++++++++++++++++++++
    3. host $(hostname)
    mailserver01.abc.com has address 192.168.1.114

    ++++++++++++++++++++++++++++++++++
    4. cat /etc/resolv.conf
    ; generated by /sbin/dhclient-script
    search abc.com
    nameserver 192.168.1.108

    +++++++++++++++++++++++++++++++++
    5. cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.1.114 mailserver01.abc.com mailserver01
    +++++++++++++++++++++++++++++++++++++++


    ==================================
    Best Regards
    Jazaib Hussain
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Two things:

    You need to create an A record for mailserver01.abc.com.

    Did you use private IP addresses for your records? If so, your hosts will be accessible only in your LAN, not from outside.
     
  3. mkhurram92

    mkhurram92 New Member

    hay falko thanks for ur reply

    ok i create A record for mailserver01.abc.com.

    Yes i know that my hosts are accessible only from inside not from out the LAN.
    i want to access them outside the LAN. i have a mail.abc.com. from domain providers also so how i will do that

    Guide me pls
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must point your DNS records to your router's public IP address and configure your router to forward all needed ports (like 25 for SMTP, 80 for HTTP, 110 for POP3) to your internal servers.
     

Share This Page