-
Junior Member
registered user
Static DNS manual networking
Hi everyone,
I am on a large network and i am having problems finding where i manually enter the static DNS. I am not using DHCP due to new hardware that is conflicting with my DHCP server. I just need to know how i find out my current IP address on the knoppix machine, and also how to put in a static DNS address. Also what are all the other address it wants me to put in?? Is one of them the DNS with a different name..??
Thanks,
P.S i am a newbie to Linux. (I am jsut starting the R&D to make many servers here)
-
Senior Member
registered user
ifconfig eth0 will tell you the current config of eth0 the files you want are in /etc/resolv.conf and /etc/network/interfaces.
Examples:
/etc/network/interfaces
Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
/etc/resolv.conf
Code:
search wolf
nameserver 192.168.1.10
nameserver 192.168.1.34
Edit the files to your settings and /etc/init.d/networking restart will restart the network with the new settings, the search in the resolv.conf is not really necessary I've had it working without it. Almost forgot the hostname is in /etc/hostname. All this as root except the ifconfig.
Or if you want to do it quickly netcardconfig as root in a console and say no to the DHCP option you can then configure it manually.
-
Junior Member
registered user
Where would I put the DNS if I do it manually through netcardconfig?
-
Junior Member
registered user
Ok I have the "ifconfig eth0" down and i have the IP, Sub and of course the gateway. BUt when i run ifconfig eth0/etc/networking/interfaces
it tell me no device found.?? why would that be if i can do the infonfig in the first place
-
Junior Member
registered user
OK all i need to know now is where to put my static DNS so that i can run this puppy!
Well at least I think that is all I need
-
Senior Member
registered user
Your dns info goes in /etc/resolv.conf
Check out the following page for networking info in Debian. If you scroll 3/4 the way down the page you will see a list of files relevant to networking in Debian. The site in general is a good intro to Debian:
http://aboutdebian.com/network.htm
Similar Threads
-
By Tek Guy in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 03-25-2005, 09:36 PM
-
By plener in forum The Lounge
Replies: 1
Last Post: 12-23-2004, 11:06 PM
-
By ck76 in forum Networking
Replies: 0
Last Post: 09-14-2004, 04:23 PM
-
By Wasteed in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 03-26-2004, 02:11 PM
-
By in forum General Support
Replies: 0
Last Post: 01-29-2003, 07:13 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture](/store/img/g/kjQAAOSwNkhj0o7Y/s-l225/Fortinet-FortiSwitch-FS-124D-POE-24-Port-Gigabit-E.jpg)
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97
![TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D picture](/store/img/g/rvkAAOSwZBBi5CPU/s-l225/TP-Link-24-Port-Gigabit-Ethernet-Unmanaged-Switch-.jpg)
TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D
$55.99
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/g/uj4AAOSw8hhmYQRm/s-l225/CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$103.74
![Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC picture](/store/img/g/dXYAAOSwqEBinnAI/s-l225/Cisco-WS-C3750X-48PF-S-48-Port-PoE-Gigabit-Switch-.jpg)
Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC
$121.88
![NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture](/store/img/g/GtAAAOSw441l3Jx1/s-l225/NETGEAR-GS108-ProSafe-8-Port-GbE-Unmanaged-Switch-.jpg)
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
![New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture](/store/img/g/QyIAAOSwTM5Y5YBC/s-l225/New-10-100-Mbps-8-Ports-Fast-Ethernet-LAN-Desktop-.jpg)
New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub
$11.49
![D-Link Model DGS-1024D 24-Port Compact Gigabit Ethernet Network Switch picture](/store/img/g/uOMAAOSwnoxmYE6R/s-l225/D-Link-Model-DGS-1024D-24-Port-Compact-Gigabit-Eth.jpg)
D-Link Model DGS-1024D 24-Port Compact Gigabit Ethernet Network Switch
$8.99
![Cisco WS-C2960S-48TS-L 48 Port Gigabit Ethernet LAN Switch - Same Day Shipping picture](/store/img/g/pVEAAOSwkjpjh8my/s-l225/Cisco-WS-C2960S-48TS-L-48-Port-Gigabit-Ethernet-LA.jpg)
Cisco WS-C2960S-48TS-L 48 Port Gigabit Ethernet LAN Switch - Same Day Shipping
$29.95
![Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture](/store/img/g/BUMAAOSwtOFjdfzi/s-l225/Loocam-Gigabit-PoE-Switch-8-Port-96W-2-Uplink-Port.jpg)
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99
![Arista DCS-7050SX-64 48-Port SFP+ 4-QSFP Network Switch 2x PSU w/Ears Tested picture](/store/img/g/OCsAAOSwE35lFICP/s-l225/Arista-DCS-7050SX-64-48-Port-SFP-4-QSFP-Network-Sw.jpg)
Arista DCS-7050SX-64 48-Port SFP+ 4-QSFP Network Switch 2x PSU w/Ears Tested
$214.99