Projects tigase _server tigase-utils Issues #13
tigase-primary-address is ignored (#13)
Wojciech Kapcia (Tigase) opened 8 years ago
'dns-resolver' {
    'tigase-primary-address' = 'atlantiscity.local'
}

Log:

<pre>
2017-08-24 17:45:51.672 [main]             DNSResolverDefault.<init>()             WARNING:  Resolving default host name: localhost took: 3

Statistics report:

<field var="message-router/Local hostname">
<value>localhost</value>
</field>
  • Andrzej Wójcik (Tigase) commented 8 years ago

    I've tried to replicate this issue but in my case using manually created latest build it works fine.

    My hostname is: mbp-andrzej.local

    If I add following entry to config file:

    'dns-resolver' {
        'tigase-primary-address' = 'atlantiscity.local'
    }
    

    in logs I get:

    2017-08-31 15:59:54.501 [main]             DNSResolverDefault.<init>()             WARNING:  Resolving default host name: mbp-andrzej.local took: 173
    2017-08-31 16:04:33.417 [main]             DNSResolverDefault.isHostValid()        SEVERE:   Not possible to resolve atlantiscity.local, using fallback address...
    

    However, if I use resolvable address, ie. @localhost.local@:

    'dns-resolver' {
        'tigase-primary-address' = 'localhost.local'
    }
    

    it works fine and prints following entries:

    2017-08-31 16:11:41.630 [main]             DNSResolverDefault.<init>()             WARNING:  Resolving default host name: mbp-andrzej.local took: 186
    2017-08-31 16:11:46.054 [main]             DNSResolverDefault.setPrimaryHost()     WARNING:  Explicit configuring default hostname: localhost.local
    

    Could you check if address which you try to use is resolvable? As I've just checked, having entry in /etc/hosts does not make this address resolvable by @InetAddress.getByName(host)@.

    Please also check what you have printed in logs or attach full config file which you use and logs.

  • Wojciech Kapcia (Tigase) commented 8 years ago

    OK, I've just checked it again and now it works.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
6020
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-utils#13
Please wait...
Page is in error, reload to recover