LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2007, 08:26 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
VOIP and DNS


I have had for about a year very poor call quality from my voip phone and have called my voip service provider and my internet isp and they both could not find a reason for this poor call quality problem. I have always never been a complete fan of voip but it is the wave of the future so I continue to use it. They have run S&R test, changed configuration on my ATA adapter and even have come out to my home to change out some connection outside of of my home thinking it was something hardware. This has been going on for about a year and a half. Just last night I decided to telnet into my voip phone and look at the settings and was surprised to find that the dns servers chosen were ones that possibly is unique to my voip provider but for what ever reason I decided to run ping test on those dns servers that they had provided. The reply times were horrible 240ms on the average. They had specified 6 different IP addresses for dns server. I changed them to dns servers that I know perform better then what they had specified(19-25ms). Now my voip phone are 1000 times better. please explain to me why a dns server would have made a difference in voip quality if it is only dealing with ip addresses and not name translation?

Last edited by metallica1973; 03-05-2007 at 08:28 AM.
 
Old 03-05-2007, 01:29 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If the VOIP software has the VOIP server hard coded by name it has to do a lookup for that. Even if it has it hard coded by IP address it may be the software is running some reverse lookup (puts in IP to find the name rather than name to find the IP).

I see this for example on NetBackup. It connects to a server fine then attempts to do a reverse lookup AFTER the connection to be sure it is where it thinks it is. If it went in via a different NIC than the "name" I had provided it will find the name I've assigned for that and bail out on me.

e.g. hostname = NIC1's IP
hostnameB = NIC2's IP

If the software went in successfully via NIC2 then did a "hostname" it would see the one for NIC1 and complain. The solution would be to add both to DNS (or even local /etc/hosts file) even though I knew it was using NIC2 for the backup.

The real question here is why is your VOIP or DNS provider's DNS resolution so slow. Do you have them first in your /etc/resolv.conf or something else first? Simply changing the order of their servers might help you. Also there is a flag you can set that reduces the delay between trying one DNS server and the next in resolv.conf.
 
Old 03-05-2007, 01:44 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
On my LAN I have my BIND server setup to forward any request that it cant resolve to my external ISP DNS servers which has excellent response time (19-25ms). My VOIP ATA is in front of my network and my VOIP provider has program the ATA with it very slow DNS servers (150ms-244ms). I just simply telneted to the ATA and changed the DNS server to point to my kick but DNS servers and that completely improved my VOIP call quality. The calls dropped, had a lot of static and just plain and simply terrible call quality. Just that one change alone made a world of difference. I guess what you said about maybe the ATA device does some reverse DNS lookups and when there is a delay then it can affect any voice or data. Wow that was big lesson learned.

Last edited by metallica1973; 03-05-2007 at 06:33 PM.
 
Old 03-05-2007, 03:23 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Of course sometimes you can bypass all that by just adding the entries you know you need to your local hosts file. hosts and nslookup won't see them but the C routines that do lookups will so long as you've made sure to list both "files" and "dns" in your nsswitch.conf.
 
Old 03-05-2007, 06:34 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Many thanks for the clarification!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
voip dukeinlondon Linux - Software 3 12-21-2005 12:28 PM
Voip metallica1973 Linux - Security 20 12-07-2005 12:49 PM
Voip tarak4u Linux - Networking 1 12-06-2005 12:26 PM
VoIP monohouse Linux - Software 1 01-21-2005 03:54 PM
voip karunesh Linux - General 1 09-16-2003 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration