Quantcast
Channel: User Edward Ned Harvey - Super User
Viewing all articles
Browse latest Browse all 17

What files does ypdomainname change on rhel8 / centos8?

$
0
0

When I run ypdomainname somedomain, it clearly takes effect, because ypdomainname will show the state changed, before and after. I need to deploy this change via configuration management, and can't find an ansible module to do it, so the solution will likely be to use lineinfile or something similar to deploy the change; only problem is: I can't find what files on the filesystem it changes. What files does it change?

The man page mentions /etc/hostname and /etc/hosts but these remain unchanged, so I think the man page is inaccurate or incomplete.

When I create a filesystem snapshot before and after, I find no differences in /etc or any other changes that I think seem relevant. Perhaps I'm missing something...

When I run strace ypdomainname somedomain, it shows that it does not access any files; it calls the setdomainname() function from libc. This is documented here: http://man7.org/linux/man-pages/man2/setdomainname.2.html which unfortunately seems to offer no information about what it actually does.


Viewing all articles
Browse latest Browse all 17

Latest Images

Trending Articles





Latest Images