Koozali.org formerly Contribs.org

How i know my external dns is working or not

How i know my external dns is working or not
« on: August 09, 2015, 09:17:56 AM »
Hi I have mail server sme
it is already send and receive emails from outside my domain no problem in that
but When i ping to my external dns it not ping and it give me as following
[root@mserver ~]# ping 212.93.192.5
PING 212.93.192.5 (212.93.192.5) 56(84) bytes of data.
this ping from mail server
Are there are any way to test dns work or not

Offline stephdl

  • *
  • 1,511
    • Linux et Geekeries
Re: How i know my external dns is working or not
« Reply #1 on: August 09, 2015, 09:37:52 AM »
your external dns server doesn't answer to pinq requests, It is the same here on my computer.
eventually you can request a dns question to your external dns like this

Code: [Select]
dig any your_dns_name @212.93.192.5
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: How i know my external dns is working or not
« Reply #2 on: August 09, 2015, 10:09:54 AM »
Thanks for reply
I write command as following and this is my result
login as: root
root@192.168.1.4's password:
Last login: Sun Aug  9 10:03:02 2015 from 192.168.1.105
[root@mserver ~]# dig 212.93.192.5

; <<>> DiG 9.2.4 <<>> 212.93.192.5
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52083
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;212.93.192.5.                  IN      A

;; ANSWER SECTION:
212.93.192.5.           655360  IN      A       212.93.192.5

;; Query time: 11 msec
;; SERVER: 192.168.1.4#53(192.168.1.4)
;; WHEN: Sun Aug  9 11:07:08 2015
;; MSG SIZE  rcvd: 46
Are this meaning it is work good or not
please help me

Offline janet

  • ****
  • 4,812
Re: How i know my external dns is working or not
« Reply #3 on: August 09, 2015, 02:32:46 PM »
ahmedsa

Try using the command you were advised

dig any altawi.com.sa @212.93.192.5

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-25.P1.el5_11.3 <<>> any altawi.com.sa @212.93.192.5
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64393
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;altawi.com.sa.                 IN      ANY

;; ANSWER SECTION:
altawi.com.sa.          14400   IN      MX      1 altawi.com.sa.
altawi.com.sa.          14400   IN      MX      0 mserver.altawi.com.sa.
altawi.com.sa.          86400   IN      NS      ns2.awalnet.net.sa.
altawi.com.sa.          86400   IN      NS      webx1.awalnet.com.
altawi.com.sa.          14400   IN      A       212.93.222.10
altawi.com.sa.          86400   IN      SOA     webx1.awalnet.com. aoulah.stcas.com.sa. 2015073002 86400 7200 3600000 86400

;; Query time: 429 msec
;; SERVER: 212.93.192.5#53(212.93.192.5)
;; WHEN: Sun Aug  9 22:29:40 2015
;; MSG SIZE  rcvd: 197
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Re: How i know my external dns is working or not
« Reply #4 on: August 09, 2015, 04:00:47 PM »
Thank you for reply
my question if dns have problems
what answer it must show to me
what answer must show to me if there are any wrong in dns

Offline janet

  • ****
  • 4,812
Re: How i know my external dns is working or not
« Reply #5 on: August 09, 2015, 04:13:17 PM »
ahmedsa

stephdl has advised you that you cannot ping your DNS server, you should use the dig command in the correct format advised (actual example as shown at start of my previous my post).
Please show the output of the same command I used, my response from my location appears OK, but that may not be the same response you receive.

As you do not say what your problem is then no one can help you.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline stephdl

  • *
  • 1,511
    • Linux et Geekeries
Re: How i know my external dns is working or not
« Reply #6 on: August 09, 2015, 11:51:32 PM »
ahmedsa

Try using the command you were advised

dig any altawi.com.sa @212.93.192.5

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-25.P1.el5_11.3 <<>> any altawi.com.sa @212.93.192.5
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64393
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;altawi.com.sa.                 IN      ANY

;; ANSWER SECTION:
altawi.com.sa.          14400   IN      MX      1 altawi.com.sa.
altawi.com.sa.          14400   IN      MX      0 mserver.altawi.com.sa.
altawi.com.sa.          86400   IN      NS      ns2.awalnet.net.sa.
altawi.com.sa.          86400   IN      NS      webx1.awalnet.com.
altawi.com.sa.          14400   IN      A       212.93.222.10
altawi.com.sa.          86400   IN      SOA     webx1.awalnet.com. aoulah.stcas.com.sa. 2015073002 86400 7200 3600000 86400

;; Query time: 429 msec
;; SERVER: 212.93.192.5#53(212.93.192.5)
;; WHEN: Sun Aug  9 22:29:40 2015
;; MSG SIZE  rcvd: 197

dns are complex and I know/understand just a little part. Above is what your external domain name server is responding to your request. The fact that you have an answer is a good thing but you have to analyse and compare from another dns provider what is present here.

If I'm wrong, please correct me

Quote
dig any altawi.com.sa @212.93.192.5 -> you are asking to the external dns server 212.93.192.5 (remove @212.93.192.5 and you will use the default dns server of your computer)

When you have an issue with your dns, you have to compare with another dns provider like google (8.8.4.4) or the dns server of your internet provider.

Quote
altawi.com.sa.          14400   IN      MX      1 altawi.com.sa. -> MX = mail exchanger which is managed by altawi.com.sa
altawi.com.sa.          86400   IN      NS      ns2.awalnet.net.sa. -> NS = name server which is managed by ns2.awalnet.net.sa and webx1.awalnet.com
altawi.com.sa.          14400   IN      A       212.93.222.10 -> the record A is the IP address of your server which handle the domain  altawi.com.sa
altawi.com.sa.          86400   IN      SOA     webx1.awalnet.com. aoulah.stcas.com.sa. 2015073002 86400 7200 3600000 86400 -> SOA = Start of authority
;; SERVER: 212.93.192.5#53(212.93.192.5) -> the dns server which had answered => @212.93.192.5

« Last Edit: August 09, 2015, 11:57:41 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!