• Increase font size
  • Default font size
  • Decrease font size

Linux

What is DNS in linux

 A DNS is a Domain Name Server. A domain is the name of a website

The Domain Name Server plays an important role in making Internet traffic possible. A DNS server is part of a global network of servers that translate host names, like whatislinux.net, into numerical IP (Internet Protocol) addresses, like 67.20.97.125, which computers on the Net use to communicate with each other. This allows us to use easy to memorize or intuitive URLs and e-mail addresses instead of a long string of...

 

how to get cpu information on Linux machine

how to get cpu information on Linux machine

Linux command Line

#cat /proc/cpuinfo
#cat /proc/meminfo

 

How many user's connected to web server

How many user's connected to web server

[root@localhost ~]# ps -ef|grep http

root      2865     1  0 Oct13 ?        00:00:04 /usr/sbin/httpd

root      2941 30934  0 04:49 pts/0    00:00:00 grep http

apache   10204  2865  0 Oct13 ?        00:00:07 /usr/sbin/httpd

apache   10205  2865  0 Oct13 ?        00:00:06 /usr/sbin/httpd

apache   10206  2865  0 Oct13 ?        00:00:06 /usr/sbin/httpd

apache   10207  2865  0 Oct13 ?        00:00:06...

 

How to check CPU information on Linux

 How to check CPU information on Linux using command line typeIntel(R) Xeon(TM) CPU 3.00 [ This e-mail address is being protected from spambots. You need JavaScript enabled to view it ~]# cat /proc/cpuinfoprocessor       : 0vendor_id       : GenuineIntelcpu family      : 15model           : 4model name      : Intel(R) Xeon(TM) CPU 3.00GHzstepping        : 10cpu MHz         : 3000.370cache size      : 2048 KBphysical id     : 0siblings        : 2core id         : 0cpu cores       : 1fdiv_bug        : nohlt_bug    ...

 

How to change the IP ADDRESS on a Linux machine

Login to your server (preferrably via console or SSH) and switch to the root user 

#vi /etc/sysconfig/network-scripts/ifcfg-eth0



Now modify the configuration by using the "i" command to insert information. When you are done updating the file, hit "ESC" and save the settings with ":w" and exit out with ":x". The file has now been modified, but the changes have not been loaded yet. Next we want to change the host name and the default gateway of the machine. From the root prompt type the...

 

How To Configure Dynamic DNS

 1、Installation of Packages yum –y install bind bind-chroot bind-utils bind-libs caching-nameserver dhcp 2、Configuring BIND (DNS)vi /etc/named.confcontrols {        inet 127.0.0.1 allow {localhost; } keys { "rndckey"; };};// Add local zone definitions here.zone "example.com" {        type master;        file "example.com.zone";        allow-update { key "rndckey"; };        notify yes;};zone "0.168.192.in-addr.arpa" {        type master;      ...

 

Why reverse lookups don't work

 There are a couple of ``gotchas'' that normally are avoided with name lookups that are often seen when setting up reverse zones. Before you go on you need reverse lookups of your machines working on your own nameserver. If it isn't go back and fix it before continuing.

 

I will discuss two failures of reverse lookups as seen from outside your network:

 The reverse zone isn't delegated.

When you ask a service provider for a network-address range and a domain name the domain name...

 

How to configure DNS in Linux

 1. Enable DNS services.
2. Configure the `/etc/hosts'' file.
3. Configure `/etc/named.conf'' file.
4. Set up DNS tables in the ``var/named/'' directory.
5. Check for the named daemon is running.

1. Enable DNS services:- To enable DNS services, /etc/host.conf file should be look like below:

# Lookup names via /etc/hosts first, then by DNS query
order hosts, bind

2. Configure /etc/hosts file. :- For better performance you can add any hosts you access often like your local servers to...

 

How can I change my root password

 How can I change my root password

$su -l root

 

[root@H]# passwd

Changing password for user root.

New UNIX password: 

Retype new UNIX password: 

passwd: all authentication tokens updated successfully.

 

 

 
Page 26 of 30