Ubuntu server access without hosts file entry
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have a website hosted on a CentOS box (httpd
service) as:
http://mycompany.the.global
Which I am able to access without hosts file entry in my local machine. On the home page of:
http://mycompany.the.global
I have few links to:
http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global
These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:
10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global
I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global
is accessible without hosts file entry.
hosts
add a comment |Â
up vote
0
down vote
favorite
I have a website hosted on a CentOS box (httpd
service) as:
http://mycompany.the.global
Which I am able to access without hosts file entry in my local machine. On the home page of:
http://mycompany.the.global
I have few links to:
http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global
These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:
10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global
I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global
is accessible without hosts file entry.
hosts
1
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a website hosted on a CentOS box (httpd
service) as:
http://mycompany.the.global
Which I am able to access without hosts file entry in my local machine. On the home page of:
http://mycompany.the.global
I have few links to:
http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global
These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:
10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global
I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global
is accessible without hosts file entry.
hosts
I have a website hosted on a CentOS box (httpd
service) as:
http://mycompany.the.global
Which I am able to access without hosts file entry in my local machine. On the home page of:
http://mycompany.the.global
I have few links to:
http://fin.mycompany.the.global
http://hr.mycompany.the.global
http://admin.mycompany.the.global
These links are not reachable. Though all these links are reachable when I make entry for these URLs in hosts file as below:
10.11.12.13 fin.mycompany.the.global
10.11.12.13 hr.mycompany.the.global
10.11.12.13 admin.mycompany.the.global
I want these to be accessible without hosts file entry in my local machine. Main page http://mycompany.the.global
is accessible without hosts file entry.
hosts
hosts
edited Feb 21 at 9:09
![](https://i.stack.imgur.com/ypy8w.png?s=32&g=1)
![](https://i.stack.imgur.com/ypy8w.png?s=32&g=1)
galoget
2,1062820
2,1062820
asked Feb 21 at 6:05
Rajeev
1
1
1
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26
add a comment |Â
1
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26
1
1
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008257%2fubuntu-server-access-without-hosts-file-entry%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
If you want a domain name to be accessible without adding it to the hosts file, you have to have a valid DNS record. The simplest would here be to point fin.mycompany.the.global to mycompany.the.global as a CNAME record. That way, you'd only have to update one record when the IP change.
â vidarlo
Feb 21 at 6:23
But how do I do that, I am naive at admin stuff. Can you please explain the process/steps
â Rajeev
Feb 21 at 9:24
You check with whoever set up DNS for mycompany.the.global. This question has nothing to with Ubuntu, and will probably be closed. You may have more luck at Serverfault or Unix&Linux SE.
â vidarlo
Feb 21 at 9:26