tch-nginx-gui icon indicating copy to clipboard operation
tch-nginx-gui copied to clipboard

Allow to set different DNS server for VoIP

Open FrancYescO opened this issue 7 years ago • 12 comments
trafficstars

from https://github.com/Ansuel/tch-nginx-gui/issues/349

FrancYescO avatar Nov 19 '18 09:11 FrancYescO

su tutti i fritzbox questa cosa è possibile farla, magari ansuel potrebbe riuscire a farlo per il modem tim

Ghost9090 avatar Nov 19 '18 16:11 Ghost9090

@Ansuel

Ghost9090 avatar Nov 20 '18 00:11 Ghost9090

Ho provato a configurare il VoIP come sui fritzbox senza successo.. solo con i DNS di Tim funziona.. @FrancYescO @Ansuel

Ghost9090 avatar Nov 25 '18 15:11 Ghost9090

Sinceramente se usi per la wan i peer dns di tim, e nel dhcp metti i dns per la lan hai risolto secondo me.

nclmrc avatar Dec 12 '18 23:12 nclmrc

Già quello lo so, ma è meglio averli anche sui dns internet invece di averli solo sul dhcp

Ghost9090 avatar Dec 12 '18 23:12 Ghost9090

We could do this by creating an independent interface for VoIP (eg. voip_link) and then use dnsmasq or /etc/config/network to specify the dns server.

kevdagoat avatar Feb 25 '19 03:02 kevdagoat

Why would you want a different dns for your voip?

nutterthanos avatar Jul 19 '19 02:07 nutterthanos

Cause some (italian) providers of voip use fqdn, resolvable only from their specific DNS server.

FrancYescO avatar Jul 19 '19 06:07 FrancYescO

So the default dns server for voip on those gateways are like the isp one but they need a different one?

nutterthanos avatar Jul 19 '19 08:07 nutterthanos

Temporary solution for TIM Italy (thanks @bandit400):

for i in $(cat /tmp/resolv.conf.ppp  | grep -v '^#' | grep nameserver | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}');
do
  uci add_list dhcp.@dnsmasq[0].server="/telecomitalia.it/$i"
done   

uci commit dhcp
/etc/init.d/dnsmasq restart

FrancYescO avatar Jan 17 '20 19:01 FrancYescO

An alternative is to append the auto discovered TIM DNS in /etc/dnsmasq.conf as follows:

server=/telecomitalia.it/85.38.28.4
server=/telecomitalia.it/85.38.28.5

85.38.28.4 and 85.38.28.5 are examples of possible TIM DNSs

After this step it is possible to disable Auto Discover DNS in Internet Access, set custom DNS, and VOIP will continue to work properly.

adripo avatar Dec 24 '21 02:12 adripo