ANeilan

hostname error

Jan 8th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. /etc/conf.d/hostname
  2. # Set to the hostname of this machine
  3. hostname="Lenovo-Z710"
  4.  
  5. /etc/hosts
  6. # /etc/hosts: Local Host Database
  7. #
  8. # This file describes a number of aliases-to-address mappings for the for
  9. # local hosts that share this file.
  10. #
  11. # In the presence of the domain name service or NIS, this file may not be
  12. # consulted at all; see /etc/host.conf for the resolution order.
  13. #
  14.  
  15. # IPv4 and IPv6 localhost aliases
  16. 127.0.0.1 localhost Lenovo-Z710
  17. ::1 localhost Lenovo-Z710
  18.  
  19. #
  20. # Imaginary network.
  21. #10.0.0.2 myname
  22. #10.0.0.3 myfriend
  23. #
  24. # According to RFC 1918, you can use the following IP networks for private
  25. # nets which will never be connected to the Internet:
  26. #
  27. # 10.0.0.0 - 10.255.255.255
  28. # 172.16.0.0 - 172.31.255.255
  29. # 192.168.0.0 - 192.168.255.255
  30. #
  31. # In case you want to be able to connect directly to the Internet (i.e. not
  32. # behind a NAT, ADSL router, etc...), you need real official assigned
  33. # numbers. Do not try to invent your own network numbers but instead get one
  34. # from your network provider (if any) or from your regional registry (ARIN,
  35. # APNIC, LACNIC, RIPE NCC, or AfriNIC.)
  36. #
  37.  
  38. /etc/dhcp/dhclient.conf
  39. #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
  40. #send dhcp-lease-time 3600;
  41. #supersede domain-search "fugue.com", "home.vix.com";
  42. #prepend domain-name-servers 127.0.0.1;
  43. #request subnet-mask, broadcast-address, time-offset, routers,
  44. # domain-name, domain-name-servers, host-name;
  45. #require subnet-mask, domain-name-servers;
  46. #timeout 60;
  47. #retry 60;
  48. #reboot 10;
  49. #select-timeout 5;
  50. #initial-interval 2;
  51. #media "-link0 -link1 -link2", "link0 link1";
  52. #reject 192.33.137.209;
  53.  
  54. #alias {
  55. # interface "ep0";
  56. # fixed-address 192.5.5.213;
  57. # option subnet-mask 255.255.255.255;
  58. #}
  59.  
  60. #lease {
  61. # interface "ep0";
  62. # fixed-address 192.33.137.200;
  63. # medium "link0 link1";
  64. # option subnet-mask 255.255.255.0;
  65. # option broadcast-address 192.33.137.255;
  66. # option routers 192.33.137.250;
  67. # option domain-name-servers 127.0.0.1;
  68. # renew 2 2000/1/12 00:00:01;
  69. # rebind 2 2000/1/12 00:00:01;
  70. # expire 2 2000/1/12 00:00:01;
  71. #}
  72. send host-name "Lenovo-Z710";
Advertisement
Add Comment
Please, Sign In to add comment