Dhcpcd overriding /etc/resolv.conf, 'nohook resolv.conf' [solved]
hello.
I set dhcpcd not to override the /etc/resolv.conf file:
[root@ jenia]# cat /etc/dhcpcd.conf
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
noipv4ll
nohook resolv.conf <----------------------------------------------------------------------------
However, this has no effect:
[root@ jenia]# cat /etc/resolv.conf
domain members.linode.com
nameserver 72.14.179.5
nameserver 72.14.188.5
nameserver 2600:3c00::2
nameserver 2600:3c00::3
options rotate
[root@ jenia]# systemctl start [email protected]
[root@ jenia]# cat /etc/resolv.conf
# This file is managed by systemd-resolved(8). Do not edit.
# Third party programs must not access this file directly, but
# only through the symlink at /etc/resolv.conf. To manage
# resolv.conf(5) in a different way, replace the symlink by a
# static file or a different symlink.
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:4860:4860::8888
# Too many DNS servers configured, the following entries may be ignored
nameserver 2001:4860:4860::8844
As you can see dhcpcd ovveride the /etc/resolv.conf file.
How can I avoid this? How can I change the file and make the changes permanent.
Thanks in advance.
Last edited by jenia (2014-07-16 17:20:02)
yes. exactly. i removed and used a text editor to make the necessary changes to a file of the same name (/etc/resolv.conf).
now the changes remained.
thanks.
Similar Messages
-
Dhcpcd and /etc/resolv.conf
How can one prevent dhcpcd from modifying /etc/resolve.conf?
Or can one prepend static options before it's own ones?
(I'de like to have my own search and nameserver entry.)Yes. Add it to /etc/conf.d/dhcpcd in DHCPCD_ARGS.
-
Override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]
This might be a stupid question, but here goes: if I redefine variables such as CFLAGS and CXXFLAGS from within a PKGBUILD, any subsequent make would use the new ones rather than the ones defined in /etc/makepkg.conf ...right? I'm assuming that makepkg reads them once when the user invokes it.
Thanks.
Last edited by graysky (2011-01-15 11:58:58)Thanks. I looked at /usr/bin/makepkg and I believe this is the case, but I don't know of a way to check after I compile them. Is there some place I can look within the final NAME.tar.xz to see which CFLAGS were used? (Again, I think the answer here is "no").
-
Hey guys,
For some unknown reason /etc/dhcpcd.conf continually overwrites my /etc/resolv.conf file, eventhough I set the "nohook resolv.conf" hook in /etc/dhcpcd.conf.
This is screwing up my DNS and intermittently creating connection problems. Any of you guys know why the hook is not taking effect or how I can stop dhcpcd from overwritting this file?
Thanks
Last edited by w201 (2013-03-18 19:05:15)drcouzelis wrote:
w201 wrote:I set the "nohook resolv.conf" hook in /etc/dhcpcd.conf.
kaszak696 wrote:
dhcpcd's configuration file may be edited to prevent the dhcpcd daemon from overwriting /etc/resolv.conf. To do this, add the following to the last section of /etc/dhcpcd.conf:
nohook resolv.conf
I don't think that information will help w201...
I changed my DNS to the Google one (8.8.8.8 or something). That's in "resolv.conf", isn't it? I remember editing some OTHER configuration file, which is then read to create the "resolve.conf" file. There it is, in that link to the wiki, under "Use resolv.conf.head". Does that help you do what you want to do?
There's three techniques at the wiki link, the nohook one, the resolv.conf.head one and the write-protection attribute. -
Dhcpcd overrides resolv.conf from vpnc
As soon dhcpcd renews the lease the resolv.conf from the vpnc gets overridden. At the moment my workaround is to copy periodically the resolv.conf.
Is there a proper solution? Have I missed a configuration parameter?
The dhcpcd is startet in this way:
dhcpcd -b -q -t 0 wlan0I just solved this issue and I wanted to share my solution in case anyone else runs into this problem. Hopefully there isn't a rule against replying to month-old threads =P
How to make dhcpcd and vpnc work together:
1) Install openresolv. This package provides resolvconf, which helps coordinate modifications to /etc/resolv.conf. With resolvconf, dhcpcd and vpnc will no longer overwrite each other's changes to /etc/resolv.conf
2) Modify /etc/vpnc/vpnc-script to look for resolvconf at /usr/sbin/resolvconf instead of /sbin/resolvconf
3) Do not modify /usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf. This hook will work with resolvconf without any modifications
Hopefully this will be helpful to someone
Last edited by centenary (2010-11-29 19:20:45) -
/etc/resolv.conf problems
In my conky script, the gmail portion stopped working so I just tried to do a normal wget https://mail.google.com in the terminal. The output was
--11:41:41-- https://mail.google.com/
=> `index.html'
Resolving mail.google.com... 1.0.0.0
Connecting to mail.google.com|1.0.0.0|:443...
which obviously isn't right. What could have changed? I use WICD to connect to my network.
rc.conf
# /etc/rc.conf - Main Configuration for Arch Linux
# LOCALIZATION
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# HARDWARE
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
MODULES=(sky2 iwl4965 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore acpi-cpufreq cpufreq_conservative)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# NETWORKING
HOSTNAME="reasons"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
lo="lo 127.0.0.1"
eth0="dhcp"
wlan0="dhcp"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0 wlan0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
# Network profiles are found in /etc/network-profiles
#NET_PROFILES=(main)
# DAEMONS
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
DAEMONS=(syslog-ng crond dbus netfs !network !dhcdbd wicd @cups @alsa @acpid @hal @fam @mpd @acpid @cpufreq gdm)
# End of file
/etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost reasons
# End of file
Last edited by Reasons (2008-01-11 01:28:45)nawcom wrote:
i was wandering around forums and i noticed the wicd issue with archlinux, since it still focuses on dhcpcd, not dhclient - so resolv.conf doesnt upload.
http://bbs.archlinux.org/viewtopic.php? … 34#p332334
let me know if it solves the issue.
That fixed it, thanks. Let's hope it stays this time.
Cerebral wrote:
Reasons wrote:
I tried that all to no avail. The problem actually went away for a while but now it is back. I've disabled ipv6 which is what solved it but now that isn't working. Also,
[shawn] /etc/rc.d/dhcpd start
:: Starting DHCP Server [FAIL]
Is there a reason you're starting the dhcp Server, and not client? Do you want dhcpcd?
That was my mistake. -
/etc/resolv.conf between netctl profile switches
Hi, all.
I use same laptop at home and in my office. Network is managed by netct. At home I connect using a profile generated by wifi-menu, in the office — plain ethernet-dhcp profile form examples folder.
With both connections nameservers are obtained via dhcp.
The issue is that after switching from office ethernet-dhcp to my home wi-fi netctl profile, /etc/resolve.conf retains nameserver and domain entries from the office connection. My home's nameserver entry gets appended to the end of the resolv.conf file. This, of course, causes unacceptable delays when resolving domain names, so I have to edit /etc/resolve.conf manually every time I've been using that office's connection.
I'm wondering whether there is something wrong with my setup.
Profiles are nothing special, as I said:
Description='Automatically generated profile by wifi-menu'
Interface=wlp3s0
Connection=wireless
Security=wpa
ESSID=my_ssid
IP=dhcp
Key=my_passwd
Description='A dhcp ethernet connection'
Interface=enp0s25
Connection=ethernet
IP=dhcp
DHCPClient='dhcpcd'
Please, help me to resolve that issue. Feel free to ask for more details if needed.
Thanks in advance for help.
Last edited by eDio (2014-04-12 19:30:51)2branch,
I switch them with netctl switch-to command, which is incorrect, as I understand now.
Important notice is that I unplug ethernet cord first, and then I perform a switch.
Also I tried disabling ethernet-dhcp explicitly after switching to wlp3s0 — not helped.
I checked /run/resolvconf/interfaces, and found that enp0s25 is missing. Instead, I have tun0, which contains problematic entries.
dhcpcd --dumplease enp0s25
broadcast_address=10.1.20.255
dhcp_lease_time=604800
dhcp_message_type=5
dhcp_rebinding_time=529200
dhcp_renewal_time=302400
dhcp_server_identifier=10.1.10.2
domain_name=my.company.domain.name
domain_name_servers='10.1.10.2 10.1.1.6'
ip_address=10.1.20.30
network_number=10.1.20.0
ntp_servers=10.1.10.2
routers=10.1.20.1
subnet_cidr=24
subnet_mask=255.255.255.0 -
no matter how many times to change the content, it keeps like that:
# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.8.1
# /etc/resolv.conf.tail can replace this line
so i can't add nameserver in it
Last edited by tempo (2010-01-14 15:01:35)The clue is in the message, use a file called resolv.conf.head to add a nameserver to the top and resolv.conf.tail to add it to the bottom.
It's being overwritten because you are using dhcpcd to auto configure your network settings.
Last edited by Meyithi (2010-01-14 13:03:43) -
[SOLVED] /etc/resolv.conf vs. the DNS field in netctl profiles
I'm a bit confused about the current role of /etc/resolv.conf. The Netctl profile documentation has a DNS field, so has /etc/resolv.conf become functionally obsolete when using netctl? Or is /etc/resolv.conf still useful when you have multiple interfaces, as it specifies DNS servers for all interfaces?
Last edited by pgoetz (2014-08-30 11:51:50)From https://wiki.archlinux.org/index.php/resolv.conf:
dhcpcd, netctl, NetworkManager, and various other processes can overwrite /etc/resolv.conf. -
How to regenerate /private/etc/resolv.conf
Folks,
I use my Snow Leopard macbook pro on multiple networks and recently made the mistake of editing the /private/etc/resolv.conf to add a search path. So now the file looks like so:
# Mac OS X Notice
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
# This file is automatically generated.
search mydomain.com
nameserver 192.168.2.2
Edit: The file doesn't appear properly but the first few lines are all commented out using #.
I hadn't paid much attention to this file before now so I'm not sure whether this file keeps getting re-generated for every network (e.g. by dhcpd) but it's certainly not being re-generated any more.
I heavily use the "host" command to lookup hostnames which is one of the few commands that uses the /private/etc/resolv.conf file instead of SL's own DNS. I'm definitely feeling pain at this time. Any ideas on how I can get this file to be re-generated again?
FWIW, I repaired permissions on the disk using "Disk Utility" and the permissions look like:
lrwxr-xr-x@ 1 root wheel 11 Dec 1 22:46 /etc -> private/etc
-rwxr-xr-x 1 root wheel 261 Dec 14 21:26 /etc/resolv.conf
-rwxr-xr-x 1 root wheel 261 Dec 14 21:26 /private/etc/resolv.conf
Thoughts?
Message was edited by: Shahbaz JaveedDepending on your editor, it is possible that the editor created a new file uniquely named file, then renamed the uniquely named file to the original name, causing the file system to delete the current directory entry (the symlink). This would have the effect of deleting the symlink and replacing it with a real file.
Another possibility is that the orignal symlink was changed to resolv.bak (or similar name). if you edited multiple times with an editor that does this, the 2nd editing session would have removed the symlink from the system, and left only regular files. -
Who writes /etc/resolv.conf?
Someone is writing the "domain" configuration directive to /etc/resolv.conf on boot. I suspected DHCP, so cleared the domain field at the DHCP server that serves the Solaris 10 computer in question, but /etc/resolv.conf is still picking up the domain name from somewhere. Who does this and where does the information come from?
Alan Feldstein
Cosmic Horizon
http://www.alanfeldstein.com/Observed that ".alanfeldstein.com" was being appended to each inquiry (as suggested by result) of the following form:
getent hosts yahoo.comThis is incorrect. alanfeldstein.com is hosted by a service provider, not here. That is, it's not on the path from here to DNS. If a domain must be appended to a name lookup handled by DNS, that of my ISP (earthlink.net), or none at all, would be more appropriate. So I removed
domain alanfeldstein.comfrom /etc/resolv.conf. However, it reappeared after reboot. I theorized that /etc/resolv.conf was written with data from my DHCP server, so I emptied the domain field there.
Still, /etc/resolv.conf was being automatically written with the same date at boot time. This question can remain open (with reduced Dukes) because I'm still curious about where that data was coming from after being cleared from the DCHP server's domain field.
I did find that specifying earthlink.net at the DHCP server caused
domain earthlink.netto appear in /etc/resolv.conf of my NIS server, which forwards non-local names to DNS on behalf of my NIS clients. And that fixes the problem I was having (i.e. inability to lookup non-local names from NIS clients).
Alan Feldstein -
Which configuration file modified the /etc/resolv.conf ?
Hello Everyone,
I have 2 linux VM in my laptop that has been setup in similar way but one of them behaves differently every time it gets rebooted.
This is OEL6 update 5
I configured 4 interfaces:
eth0 - eth3 is setup with NAT-Network to be able to communicate with other VMs only.
eth4 is setup with bridged network.
I've configured the ifcfg-eth# scripts as follows:
Interface
server 1
server 2
eth0
DEVICE=eth0
TYPE=Ethernet
UUID=8cb50704-029f-469a-b031-da44b4a49b74
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=10.1.2.71
PREFIX=24
GATEWAY=10.1.2.1
DNS1=10.1.2.90
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=08:00:27:12:F8:42
LAST_CONNECT=1389967507
DEVICE=eth0
TYPE=Ethernet
UUID=f10e7ab5-7b7e-4bcf-9ddb-a2ab439a776a
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=10.1.2.72
PREFIX=24
GATEWAY=10.1.2.1
DNS1=10.1.2.90
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=08:00:27:45:56:13
LAST_CONNECT=1389968121
eth1
DEVICE=eth1
TYPE=Ethernet
UUID=568d8c14-d28e-48f7-82e5-dd7764968648
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.5.81
PREFIX=24
GATEWAY=192.168.5.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
HWADDR=08:00:27:B1:D9:D6
DEVICE=eth1
TYPE=Ethernet
UUID=dc09606a-5126-4d2c-a0bc-ea11ce0dc80f
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.5.82
PREFIX=24
GATEWAY=192.168.5.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
HWADDR=08:00:27:15:7B:39
LAST_CONNECT=1389968121
eth2
DEVICE=eth2
TYPE=Ethernet
UUID=6e6858b9-9709-4334-9b58-bb6f02a30e94
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
HWADDR=08:00:27:9C:16:71
IPADDR=192.168.7.51
PREFIX=24
GATEWAY=192.168.7.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth2"
DEVICE=eth2
TYPE=Ethernet
UUID=283b2c5c-04e1-47ca-8375-6c52d333099f
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.7.52
PREFIX=24
GATEWAY=192.168.7.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth2"
HWADDR=08:00:27:A8:44:45
LAST_CONNECT=1389968121
eth3
DEVICE=eth3
TYPE=Ethernet
UUID=ecca01b5-e18f-4f7f-b617-0cfe50e17638
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
HWADDR=08:00:27:5C:F8:96
IPADDR=192.168.9.51
PREFIX=24
GATEWAY=192.168.9.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth3"
DEVICE=eth3
TYPE=Ethernet
UUID=9f2f8b5a-2650-412b-9d12-49de5484a877
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.9.52
PREFIX=24
GATEWAY=192.168.9.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth3"
HWADDR=08:00:27:27:0F:F0
LAST_CONNECT=1389968136
eth4
HWADDR=08:00:27:EC:60:F2
TYPE=Ethernet
BOOTPROTO=none
NM_CONTROLLED=no
DEFROUTE=no
PEERDNS=no
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
IPADDR=192.168.1.30
DNS1=192.168.1.90
NAME=eth4
UUID=6c6afa4f-48ce-47c7-9968-3419b4e5f8ea
ONBOOT=yes
LAST_CONNECT=1393844453
HWADDR=08:00:27:FD:E7:7E
TYPE=Ethernet
BOOTPROTO=none
NM_CONTROLLED=no
DEFROUTE=no
PEERDNS=no
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
IPADDR=192.168.1.31
DNS1=192.168.1.90
NAME=eth4
UUID=0ca62e7e-6770-45aa-a7a2-bca42cf3ed9c
ONBOOT=yes
LAST_CONNECT=1393849919
however, each time I rebooted, these are the difference on the /etc/resolv.conf and the other configuration
Config
Server 1
Server 2
/etc/resolv.conf
; generated by /sbin/dhclient-script
search wrx4.vm
nameserver 10.1.2.90
nameserver 103.11.48.126
# Generated by NetworkManager
search wrx4.vm
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 10.1.2.90
chkconfig --list NetworkManager
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
service NetworkManager status
NetworkManager is stopped
NetworkManager is stopped
I never setup any dhcp client configuration before, but each time the VM is rebooted or started it seems that the /etc/resolv.conf always gets overwritten again.
However, in Server 1, somehow the dhcp client is working and getting the right DNS server IP address.
What I want to achieve for the Server 2 is like the one in the Server 1 where the nameserver I got from the ISP is also configured there.
That will made it easier if I need to download just a small file from the internet.
Other than that, I also wanted to understand what other configuration that could affect this /etc/resolve.conf file gets overwritten, which configuration and how to configure it.
Thanks in advance for your help in advance.
Adhika
Message was edited by: Adhika WHi Dude!,
To make it simpler, I can simply delete those interfaces (eth0, eth1, eth2, & eth3) right now and left with eth4 which I think can be directed to the actual question I was asking.
So here's the result of ipconfig on my host:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 00-90-F5-CC-F9-DB
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
103.11.48.126
NetBIOS over Tcpip. . . . . . . . : Enabled
As you can see from that result, if you compare the Server 1 and Server 2, the /etc/resolv.conf from Server 1 managed to get that 103.11.48.126, whereas the one in the Server 2 couldn't.
This is exactly what I'm trying to resolve.
Does this make any sense to you?
Just forget about the other interfaces.
Thank you,
Adhika -
Oracle Linux 6.6 I tried to edit the /etc/resplv.conf file on nano, gedit and VI but the result doesn't appear on the file when I cat it
Hi ! do you mean the file /etc/resolv.conf ? This file should be by default in the /etc/ diretory and contains the dns-name resolutions. http://linux.die.net/man/5/resolv.conf http://www.tldp.org/LDP/nag/node84.html http://en.wikipedia.org/wiki/Resolv.conf
-
Settings in /etc/sysctl.conf overwritten [SOLVED]
I added a new line to /etc/sysctl.conf setting the vm.dirty_ratio to 3 (line is simply `vm.dirty_ratio = 3`). I can invoke it by running `sysctl -p` so I know the syntax is correct. This setting is however not loaded upon a reboot. The systemd-sysctl.service is however kicked off just fine and completes without errors. I have also tried removing the line from /etc/sysctl.conf and placing it in /etc/sysctl.d/dirty.conf but again, it is not honored at boot. What am I doing wrong?
EDIT: The solution is in post #31 - acknowledgement to chp for pointing me to it. Note that I also changed to topic to a more relevant one.
Last edited by graysky (2013-08-10 12:27:41)Guess I'm stumped. I just spun up an Arch VM, pasted in the /etc/sysctl.conf below and reboot it. All the settings in the file in the VM are applied. If Leonid's guess that something is overriding these values on my workstation, I would like to figure out what it is and shut it down. To keep things simple, I booted into the stock ARCH kernel; here are the services I have active:
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automo
sys-devices-pci0000:00-0000:00:19.0-net-eno1.device loaded active plugged P8P67 Deluxe Motherboard
sys-devices-pci0...-0000:00:1b.0-sound-card0.device loaded active plugged 7 Series/C210 Series Chipset Family High Definition
sys-devices-pci0...6-0000:07:00.0-net-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
sys-devices-pci0...:0-0:0:0:0-block-sda-sda1.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-0:0:0:0-block-sda-sda2.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-0:0:0:0-block-sda-sda3.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...et0:0:0-0:0:0:0-block-sda.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb1.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb2.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb3.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb4.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb5.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb6.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb7.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...et1:0:0-1:0:0:0-block-sdb.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...et3:0:0-3:0:0:0-block-sr0.device loaded active plugged ATAPI_iHAS424_B
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-module-fuse.device loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-eno1.device loaded active plugged P8P67 Deluxe Motherboard
sys-subsystem-net-devices-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
-.mount loaded active mounted /
boot.mount loaded active mounted /boot
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
home-facade-.cache.mount loaded active mounted /home/facade/.cache
mnt-data.mount loaded active mounted /mnt/data
run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
scratch.mount loaded active mounted /scratch
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
var-cache.mount loaded active mounted /var/cache
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watc
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
cronie.service loaded active running Periodic Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
fancontrol.service loaded active running Fan control daemon
[email protected] loaded active running Getty on tty1
gpm.service loaded active running Virtual console mouse server
lxdm.service loaded active running LXDE Display Manager
[email protected] loaded active exited A basic static ethernet connection using iproute
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
psd.service loaded active exited Profile-sync-daemon
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
ufw.service loaded active exited CLI Netfilter Manager
upower.service loaded active running Daemon for power management
cups.socket loaded active listening CUPS Printing Service Sockets
dbus.socket loaded active running D-Bus System Message Bus Socket
dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
sshd.socket loaded active listening sshd.socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active listening udev Control Socket
systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
ufw.service loaded active exited CLI Netfilter Manager
upower.service loaded active running Daemon for power management
cups.socket loaded active listening CUPS Printing Service Sockets
dbus.socket loaded active running D-Bus System Message Bus Socket
dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
sshd.socket loaded active listening sshd.socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active listening udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network.target loaded active active Network
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
psd-resync.timer loaded active waiting Timer for Profile-sync-daemon - 1Hour
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
And...
% systemctl list-unit-files
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-fs-nfsd.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount static
var-lib-nfs-rpc_pipefs.mount static
cups.path disabled
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
alsa-restore.service static
alsa-state.service static
alsa-store.service static
arch32.service disabled
[email protected] disabled
avahi-daemon.service disabled
avahi-dnsconfd.service disabled
binfmt-support.service disabled
blkmapd.service disabled
canberra-system-bootup.service disabled
canberra-system-shutdown-reboot.service disabled
canberra-system-shutdown.service disabled
colord.service static
console-getty.service disabled
console-shell.service disabled
cronie.service enabled
cups-browsed.service disabled
cups.service disabled
cupsd.service disabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dhcpcd.service disabled
[email protected] disabled
display-manager.service enabled
distccd.service disabled
dkms.service disabled
dmeventd.service static
emergency.service static
fancontrol.service enabled
ftpd.service disabled
[email protected] enabled
[email protected] static
gpm.service enabled
hddtemp.service disabled
healthd.service disabled
initrd-cleanup.service static
initrd-parse-etc.service static
initrd-switch-root.service static
initrd-udevadm-cleanup-db.service static
ip6tables.service disabled
iptables.service disabled
irexec.service disabled
krb5-kadmind.service disabled
krb5-kdc.service disabled
krb5-kpropd.service disabled
[email protected] static
lirc.service disabled
lircm.service disabled
lm_sensors.service disabled
lxdm.service enabled
mcelog.service disabled
mpd.service disabled
[email protected] disabled
[email protected] disabled
netctl-sleep.service disabled
netctl.service disabled
[email protected] static
[email protected] static
[email protected] enabled
nfsd.service disabled
nmbd.service disabled
nscd.service disabled
ntpd.service enabled
ntpdate.service disabled
polkit.service static
psd-resync.service enabled
psd.service enabled
quotaon.service static
rescue.service static
rpc-gssd.service disabled
rpc-idmapd.service disabled
rpc-mountd.service disabled
rpc-statd.service disabled
rpc-svcgssd.service disabled
rpcbind.service disabled
rsyncd.service disabled
[email protected] static
rtkit-daemon.service disabled
samba.service disabled
sensord.service disabled
[email protected] static
smartd.service disabled
smbd.service disabled
[email protected] static
snmpd.service disabled
snmptrapd.service disabled
speech-dispatcherd.service disabled
sshd.service disabled
[email protected] static
sshdgenkeys.service static
svnserve.service disabled
[email protected] static
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-binfmt.service static
systemd-fsck-root.service static
[email protected] static
systemd-halt.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journal-gatewayd.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-modules-load.service static
[email protected] static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed-load.service static
systemd-random-seed-save.service static
systemd-readahead-collect.service disabled
systemd-readahead-done.service static
systemd-readahead-drop.service disabled
systemd-readahead-replay.service disabled
systemd-reboot.service static
systemd-remount-fs.service static
systemd-shutdownd.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup-dev.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udisks.service disabled
udisks2.service static
ufw.service enabled
upower.service disabled
usbmuxd.service static
[email protected] disabled
uuidd.service static
vboxweb.service disabled
vncserver.service disabled
winbindd.service disabled
[email protected] disabled
[email protected] disabled
wpa_supplicant.service disabled
[email protected] disabled
avahi-daemon.socket disabled
cups.socket enabled
dbus.socket static
dmeventd.socket static
git-daemon.socket disabled
krb5-kpropd.socket disabled
rsyncd.socket disabled
smbd.socket disabled
sshd.socket enabled
swat.socket disabled
syslog.socket static
systemd-initctl.socket static
systemd-journal-gatewayd.socket disabled
systemd-journald.socket static
systemd-shutdownd.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
uuidd.socket disabled
basic.target static
bluetooth.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target disabled
emergency.target static
final.target static
getty.target static
graphical.target disabled
halt.target disabled
hibernate.target static
hybrid-sleep.target static
initrd-fs.target static
initrd-root-fs.target static
initrd-switch-root.target static
initrd.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
multi-user.target disabled
network-online.target static
network.target static
nss-lookup.target static
nss-user-lookup.target static
paths.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
shutdown.target static
sigpwr.target static
sleep.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
system-update.target static
time-sync.target static
timers.target static
umount.target static
psd-resync.timer static
systemd-readahead-done.timer static
systemd-tmpfiles-clean.timer static
231 unit files listed.
Last edited by graysky (2014-11-03 08:39:54) -
/etc/logadm.conf gets rewritten bug
I think I found a race condition in logadm that makes can corrupt the conf file. Firstly, let me say that any utility that expects to update a timestamp in a running conf file is asking for trouble. The utility should be "selfhealing" and the conf file should be untouchable with a separate status/timestamp file.
So I have a system running :
SunOS XXXXXX 5.9 Generic_118558-27 sun4u sparc SUNW,Sun-Fire
At the same cron time, it calls:
0 3 * * * /usr/sbin/logadm
and
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/rm /var/adm/pacct.[0-9]*;/usr/lib/acct/turnacct switch
At 3 am, both would be called. "turnacct switch" calls "logadm -p now /var/adm/pacct".
There must be insufficient locking or no locking because the result on my system is only the pacct record in /etc/logadm.conf; the previous standard entries are all lost in /etc/logadm.conf.
Result in /etc/logadm.conf:
/var/adm/pacct -P 'Fri Jul 6 15:50:00 2007'
The fix is to offset the running of logadm by a minute or two in cron. The real fix would be to rewrite with correct file locking.
eugene tsunobruce wrote:does your nameserver work when you use nslookup? eg `nslookup google.com 192.168.1.1`?
also, could i suggest adding entries for opendns to your /etc/resolv.conf.tail after your local one?
domain myhome.westell.com
nameserver 192.168.1.1
nameserver 208.67.222.222 #opendns
nameserver 208.67.220.220 #opendns
works nicely as a backup if your somewhere with a dodgy dns etc
Yep, I just tried and it works fine when I use nslookup but web browser and ping still dont work. I can use googles ip 74.125.53.100 and everything works, but not the domain name. As for opendns Id really just like to get my standard dns to work for now, I know it should work because I use it on all the other computers plus it works with dhcp. After I figure out what Im doing and whats going wrong Im probably going to setup my router to use opendns.
[tj@arch ~]$ nslookup google.com 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: google.com
Address: 74.125.53.100
Name: google.com
Address: 74.125.67.100
Name: google.com
Address: 74.125.45.100
[tj@arch ~]$
I still havn't got around to seeing if I can get it to work with netcfg, it was late last night and I fell asleep. Ill try it now and post back with the results.
Maybe you are looking for
-
ASP How do you go to a detail page from an insert page?
Hi I'm building a site in asp and I have an insert page that once submitted should go to a detail page of the record just submitted. There is a unique ID field in the database that is generated by the database. I was thinking that the unique ID is th
-
Standards or best practises for Java imports?
I was just wondering how some of the more seasoned developers out there handle Java imports. I'm fairly new to Java programming and as far as I know there is very little difference between explicitly importing individual classes and importing entire
-
Z580 Problems After Bios Update
So here is the story, I bought my laptop 4gb ram installed and last year i bought 8gb ram to upgrade it. But both rams together made my laptop unstable, it was at 100% cpu usage even when it was idle. So i started using only 8gb. Then i decided to up
-
HT1338 inactive plug in signal, or, safari cannot open this server page.
got a problem, anyone smart out there can help? want a web site but not accessible, says safari cannot find server, or Inactive plug in. click that arrow, no new updates needed. still cannot access web page. run snow leopard and java 6?
-
Problems with Apps - HP Officeject Pro 8600 Plus
I'm very confused about this problem. If I select "Apps" from the main screen, I get the "connecting to www.hpeprintcenter.com" screen and then the Apps are displayed. But then, when I select an App that I have not used yet, I receive the dreaded "Co