getaddrinfo() API with systemd -


i facing problem while querying dns using getaddrinfo() api under process initiated systemd. despite having nameserver entry in /etc/resolv.conf, query fails resolve. after few system call traces, found problem due systemd resolution. seems like, process inited systemd, getaddrinfo() dns query routed via systemd while in stand alone mode (i.e. spawned shell), query happens normally. changed /etc/systemd/resolved.conf add dns address , restarted systemd-resolved. dns query works properly.

is there anyway bypass systemd getaddrinfo() [ex: passing flags hints], , work done in usual way?

in opinion, genuine getaddrinfo() call should use glibc.

my best guess supposed correlation systemd process initiation entirely false. on systemd system ordinary processes either directly or indirectly initiated systemd.

network name resolution performed glibc not driven /etc/resolv.conf /etc/nsswitch.conf. see resolved mentioned in file.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -