Jira (FACT-3049) Reading the `/etc/resolv.conf` file for the domain value

0 views
Skip to first unread message

Selvakumar Azhagarsami (Jira)

unread,
May 31, 2021, 4:47:02 AM5/31/21
to puppe...@googlegroups.com
Selvakumar Azhagarsami created an issue
 
Facter / Improvement FACT-3049
Reading the `/etc/resolv.conf` file for the domain value
Issue Type: Improvement Improvement
Affects Versions: FACT 3.14.1
Assignee: Unassigned
Created: 2021/05/31 1:46 AM
Priority: Normal Normal
Reporter: Selvakumar Azhagarsami

Per our environment settings, it is unable to get the FQDN from hostname -f. So, we have to read the /etc/resolve.conf for the domain value. But, it is not a must to set the 1st search domain as the server domain name in the /etc/resolve.conf file. So, do U think we have to review this mechanism to get the domain info?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Austin Boyd (Jira)

unread,
May 31, 2021, 4:48:01 AM5/31/21
to puppe...@googlegroups.com

Austin Boyd (Jira)

unread,
May 31, 2021, 4:48:04 AM5/31/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 44497

Mihai Buzgau (Jira)

unread,
Jun 1, 2021, 10:54:03 AM6/1/21
to puppe...@googlegroups.com

Patrick Grant (Jira)

unread,
Jun 8, 2021, 6:56:03 AM6/8/21
to puppe...@googlegroups.com
Patrick Grant commented on Improvement FACT-3049
 
Re: Reading the `/etc/resolv.conf` file for the domain value

Hi Paul Liong would it be possible to provide more detail here on how you would like this mechanism to work? At the moment it uses gethostname(), if this doesn't return anything it then searches the /etc/resolv.conf. How would you like this to operate to best suit your use case? If you can provide as much detail as possible, it will help us to see if a change is feasible. Thank you!

Patrick Grant (Jira)

unread,
Jun 22, 2021, 6:40:01 AM6/22/21
to puppe...@googlegroups.com

Hi Paul Liong could you provide an update on our query above? Without this information it will be difficult to progress this ticket. Thank you.

Paul Liong (Jira)

unread,
Jun 24, 2021, 12:07:01 PM6/24/21
to puppe...@googlegroups.com
Paul Liong commented on Improvement FACT-3049

Hi Patrick Grant,

 

Thanks for your waiting. Well, it is noticed that the search field specify in /etc/resolv.conf may not be the FQDN of the servers.  So, will it be better to get the FQDN by looking up DNS record from the primary ip address?

Regards

Paul

Ciprian Badescu (Jira)

unread,
Jun 29, 2021, 4:08:01 AM6/29/21
to puppe...@googlegroups.com

Paul Liong, as per Selvakumar Azhagarsami comment, facter will use /etc/resolv.conf only when DNS resolving fails (`gethostname`/`hostname -f` are doing DNS lookup).

Patrick Grant (Jira)

unread,
Jul 13, 2021, 6:53:03 AM7/13/21
to puppe...@googlegroups.com

Going to close this ticket out at this point, it has been explained that facter will use /etc/resolv.conf only when DNS resolving fails. If we are missing any detail here, this can be reopened but for now there appears to be no issue. Thanks!

Paul Liong (Jira)

unread,
Jul 13, 2021, 11:47:03 AM7/13/21
to puppe...@googlegroups.com
Paul Liong commented on Improvement FACT-3049

Hi Patrick Grant,

Thanks for your comment.  So, what happen if  the DNS resolving fails?  If that is the case, facter will nor return the correct info

 

Thanks & Regards

Paul

Ciprian Badescu (Jira)

unread,
Jul 13, 2021, 12:00:14 PM7/13/21
to puppe...@googlegroups.com

Paul Liong, In case the DNS resolving fails, how could facter retrieve the correct info?

Ciprian Badescu (Jira)

unread,
Sep 7, 2021, 4:34:02 AM9/7/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Sep 7, 2021, 4:34:02 AM9/7/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages