Ok I have looked back through the Astlinux archives and found one of Lonnie's 
old posts.
------------------
====
Single Interface (only External Interface: defined) configuration:
1) In the Network tab, make the Hostname: and Domain: match that of the 
upstream DNS server.
2) Uncheck the "Local Domain" box.
3) Make sure no IPv4 (or IPv6/nn) addresses are defined in any of the "Internal 
Interfaces:" section fields.
====
Now, in your case, you have internal interfaces/networks.  As a rule the first 
defined internal interface (usually 1st LAN) will automatically have a 
/etc/hosts entry:
--
INTIP HOSTNAME.DOMAIN HOSTNAME
--
Note: Regardless if "Local Domain" is checked or unchecked, HOSTNAME will 
resolve to INTIP. The file /etc/hosts always has priority.

So, if you have internal interfaces/networks the DOMAIN should normally be 
unique and "Local Domain" should be checked.  For example DOMAIN could be 
"local' or I personally use "priv.abelbeck.com" as my AstLinux DOMAIN which 
does not occur anywhere in the public DNS.

Define your DNS hosts for your local devices by using Network tab -> DNS 
Forwarder & DHCP Server { Configure DNS Hosts }
These values will be automatically added to the /etc/hosts file for DNS, 
"Restart DNS" to apply the changes.

Note the DHCP server will pass out DOMAIN so all local devices will have the 
scope of the *unique* local domain.
---------------------

I have a couple of questions:
1) I don't quite understand '1) In the Network tab, make the Hostname: and 
Domain: match that of the upstream DNS server'. Could you please explain sorry?
2) Im assuming that basically all my systems (with an internal interface) 
should be ipcsolutions.local with 'Local Domain' checked?
3) I realise that the DNS requests below are for IPv6. Can I turn this off?

Regards
Michael Knill

-----Original Message-----
From: Michael Knill <michael.kn...@ipcsolutions.com.au>
Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net>
Date: Saturday, 23 September 2017 at 9:58 am
To: AstLinux List <astlinux-users@lists.sourceforge.net>
Subject: Re: [Astlinux-users] Delay after Asterisk Dial when no DNS

Far out! I have found the problem and it all due to the fact that I don't know 
what I am doing (

When I do tcpdump on eth0 (WAN), every call I make e.g. even extension to 
extension does this:
09:28:14.684997 IP 172.17.17.200.54004 > 172.17.17.1.domain: 60192+ AAAA? 
3999-IBCBuild-CM1.ipcsolutions.local. (54)
09:28:14.685599 IP 172.17.17.1.domain > 172.17.17.200.54004: 60192 NXDomain 
0/0/0 (54)
09:28:14.701505 IP 172.17.17.200.52348 > 172.17.17.1.domain: 26730+ AAAA? 
3999-IBCBuild-CM1.ipcsolutions.local. (54)
09:28:14.701989 IP 172.17.17.1.domain > 172.17.17.200.52348: 26730 NXDomain 
0/0/0 (54)

Why is it trying to resolve my local host? 
When I check local domain it fixes this problem but is this the best practice?
Sorry Im a little confused!

Regards
Michael Knill

-----Original Message-----
From: Lonnie Abelbeck <li...@lonnie.abelbeck.com>
Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net>
Date: Saturday, 23 September 2017 at 8:50 am
To: AstLinux List <astlinux-users@lists.sourceforge.net>
Subject: Re: [Astlinux-users] Delay after Asterisk Dial when no DNS

Hi Michael,

It is my understanding that chan_sip trunks only does DNS lookups at (asterisk) 
startup unless you enable ...  dnsmgr.conf -> enable=yes .  Possibly registers 
always do DNS lookups, not certain.

As long as local DNS entries are in your hosts file (Network tab -> DNS 
Forwarder & DHCP Server: { Configure DNS Hosts } it should work, I would guess.

In the old days, I recall running Asterisk 1.2 and 1.4 on single core boxes 
like the PC Engines WRAP and Soekris net4801, and Asterisk DNS lookups were 
blocking and could *totally* lock-up a system when the WAN connection went 
down.  I have not seen than behavior, personally, in quite some time.  
Multi-core and dnsmasq helps.

Lonnie


On Sep 21, 2017, at 6:49 PM, Michael Knill <michael.kn...@ipcsolutions.com.au> 
wrote:

> Is it possible to resolve this problem E.g. if you lose your WAN (and 
> therefore DNS), you can still make internal calls without the large delay?
>  
> Regards
> Michael Knill
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot_______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to 
> pay...@krisk.org.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to