How to set a domain to ip address?
You can reach this IP address 2.186.116.46 (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.
Thanks
networking apache2 dns
add a comment |
You can reach this IP address 2.186.116.46 (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.
Thanks
networking apache2 dns
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
1
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup aServerName
directive into your/etc/apache2/sites-available/your-virtualhost.conf
file.
– pa4080
Apr 5 '17 at 17:42
1
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25
add a comment |
You can reach this IP address 2.186.116.46 (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.
Thanks
networking apache2 dns
You can reach this IP address 2.186.116.46 (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.
Thanks
networking apache2 dns
networking apache2 dns
edited Apr 5 '17 at 23:37
wjandrea
8,26842259
8,26842259
asked Apr 5 '17 at 17:13
Shadow4Kill
48116
48116
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
1
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup aServerName
directive into your/etc/apache2/sites-available/your-virtualhost.conf
file.
– pa4080
Apr 5 '17 at 17:42
1
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25
add a comment |
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
1
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup aServerName
directive into your/etc/apache2/sites-available/your-virtualhost.conf
file.
– pa4080
Apr 5 '17 at 17:42
1
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
1
1
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup a
ServerName
directive into your /etc/apache2/sites-available/your-virtualhost.conf
file.– pa4080
Apr 5 '17 at 17:42
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup a
ServerName
directive into your /etc/apache2/sites-available/your-virtualhost.conf
file.– pa4080
Apr 5 '17 at 17:42
1
1
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25
add a comment |
2 Answers
2
active
oldest
votes
1. You need to acquire a domain name (or maybe just FQDN) from some DNS provider.
2. Once you have registered the domain name, you will gain access to an administrative panel (like this one shown below), where you will be able to redirect the domain name (and all *.
or certain sub domains / FQDNs) to your server's IP address.
Please note that the provider's administrative panel shall looks different, and the provider will give you exact instructions how to use it.
Sometimes the redirection can take up-to 24 hours. You can check if it's successful by the command
whois example.com
.If the server is behind NAT, you must setup port forwarding.
3. Edit your Virtual Host configuration file and add relevant ServerName
and maybe ServerAlias
directives. Let's assume the configuration file is 000-default.conf
that should look as this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
# etc ...
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This step can be omitted, but it is absolutely necessary when you have more than one Virtual Hosts.
Don't forgot to:
sudo a2ensite 000-default.conf
sudo systemctl reload apache2.service
4. In addition for local needs:
You can bind a FQDN to the loopback interface of the server. For this purpose, edit the file
/etc/hosts
in a way like this:
127.0.0.1 localhost example.com www.example.com
It is not possible to enter
*.example.com
here. You can add an entry also for the IP address of another (local) server's network interface - for example77.77.77.70
.
If you want to access the FQDN by another computer through the LAN (or by a private computer through Internet), edit its
host
file in a way like this:
77.77.77.70 example.com www.example.com
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
|
show 1 more comment
If it is for just local use, you can just put that entry into your hosts file.
On modern Windows, that is c:/Windows/drivers/etc/HOSTS
On linux, the file is /etc/hosts.
For the rest of the world, use one of the freely available DNS providers.
Here is an example, with instructions: FreeDNS
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f900523%2fhow-to-set-a-domain-to-ip-address%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
1. You need to acquire a domain name (or maybe just FQDN) from some DNS provider.
2. Once you have registered the domain name, you will gain access to an administrative panel (like this one shown below), where you will be able to redirect the domain name (and all *.
or certain sub domains / FQDNs) to your server's IP address.
Please note that the provider's administrative panel shall looks different, and the provider will give you exact instructions how to use it.
Sometimes the redirection can take up-to 24 hours. You can check if it's successful by the command
whois example.com
.If the server is behind NAT, you must setup port forwarding.
3. Edit your Virtual Host configuration file and add relevant ServerName
and maybe ServerAlias
directives. Let's assume the configuration file is 000-default.conf
that should look as this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
# etc ...
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This step can be omitted, but it is absolutely necessary when you have more than one Virtual Hosts.
Don't forgot to:
sudo a2ensite 000-default.conf
sudo systemctl reload apache2.service
4. In addition for local needs:
You can bind a FQDN to the loopback interface of the server. For this purpose, edit the file
/etc/hosts
in a way like this:
127.0.0.1 localhost example.com www.example.com
It is not possible to enter
*.example.com
here. You can add an entry also for the IP address of another (local) server's network interface - for example77.77.77.70
.
If you want to access the FQDN by another computer through the LAN (or by a private computer through Internet), edit its
host
file in a way like this:
77.77.77.70 example.com www.example.com
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
|
show 1 more comment
1. You need to acquire a domain name (or maybe just FQDN) from some DNS provider.
2. Once you have registered the domain name, you will gain access to an administrative panel (like this one shown below), where you will be able to redirect the domain name (and all *.
or certain sub domains / FQDNs) to your server's IP address.
Please note that the provider's administrative panel shall looks different, and the provider will give you exact instructions how to use it.
Sometimes the redirection can take up-to 24 hours. You can check if it's successful by the command
whois example.com
.If the server is behind NAT, you must setup port forwarding.
3. Edit your Virtual Host configuration file and add relevant ServerName
and maybe ServerAlias
directives. Let's assume the configuration file is 000-default.conf
that should look as this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
# etc ...
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This step can be omitted, but it is absolutely necessary when you have more than one Virtual Hosts.
Don't forgot to:
sudo a2ensite 000-default.conf
sudo systemctl reload apache2.service
4. In addition for local needs:
You can bind a FQDN to the loopback interface of the server. For this purpose, edit the file
/etc/hosts
in a way like this:
127.0.0.1 localhost example.com www.example.com
It is not possible to enter
*.example.com
here. You can add an entry also for the IP address of another (local) server's network interface - for example77.77.77.70
.
If you want to access the FQDN by another computer through the LAN (or by a private computer through Internet), edit its
host
file in a way like this:
77.77.77.70 example.com www.example.com
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
|
show 1 more comment
1. You need to acquire a domain name (or maybe just FQDN) from some DNS provider.
2. Once you have registered the domain name, you will gain access to an administrative panel (like this one shown below), where you will be able to redirect the domain name (and all *.
or certain sub domains / FQDNs) to your server's IP address.
Please note that the provider's administrative panel shall looks different, and the provider will give you exact instructions how to use it.
Sometimes the redirection can take up-to 24 hours. You can check if it's successful by the command
whois example.com
.If the server is behind NAT, you must setup port forwarding.
3. Edit your Virtual Host configuration file and add relevant ServerName
and maybe ServerAlias
directives. Let's assume the configuration file is 000-default.conf
that should look as this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
# etc ...
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This step can be omitted, but it is absolutely necessary when you have more than one Virtual Hosts.
Don't forgot to:
sudo a2ensite 000-default.conf
sudo systemctl reload apache2.service
4. In addition for local needs:
You can bind a FQDN to the loopback interface of the server. For this purpose, edit the file
/etc/hosts
in a way like this:
127.0.0.1 localhost example.com www.example.com
It is not possible to enter
*.example.com
here. You can add an entry also for the IP address of another (local) server's network interface - for example77.77.77.70
.
If you want to access the FQDN by another computer through the LAN (or by a private computer through Internet), edit its
host
file in a way like this:
77.77.77.70 example.com www.example.com
1. You need to acquire a domain name (or maybe just FQDN) from some DNS provider.
2. Once you have registered the domain name, you will gain access to an administrative panel (like this one shown below), where you will be able to redirect the domain name (and all *.
or certain sub domains / FQDNs) to your server's IP address.
Please note that the provider's administrative panel shall looks different, and the provider will give you exact instructions how to use it.
Sometimes the redirection can take up-to 24 hours. You can check if it's successful by the command
whois example.com
.If the server is behind NAT, you must setup port forwarding.
3. Edit your Virtual Host configuration file and add relevant ServerName
and maybe ServerAlias
directives. Let's assume the configuration file is 000-default.conf
that should look as this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
# etc ...
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This step can be omitted, but it is absolutely necessary when you have more than one Virtual Hosts.
Don't forgot to:
sudo a2ensite 000-default.conf
sudo systemctl reload apache2.service
4. In addition for local needs:
You can bind a FQDN to the loopback interface of the server. For this purpose, edit the file
/etc/hosts
in a way like this:
127.0.0.1 localhost example.com www.example.com
It is not possible to enter
*.example.com
here. You can add an entry also for the IP address of another (local) server's network interface - for example77.77.77.70
.
If you want to access the FQDN by another computer through the LAN (or by a private computer through Internet), edit its
host
file in a way like this:
77.77.77.70 example.com www.example.com
edited Dec 14 at 18:39
answered Apr 5 '17 at 22:25
pa4080
13.3k52561
13.3k52561
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
|
show 1 more comment
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Maybe this answer could be interesting for you.
– pa4080
Apr 5 '17 at 22:29
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks for your answer. But editing my /etc/hosts will only make domain available for my home network I want to set domain for public internet connection. I now got two DNS: herahost1.ddns.net herahost2.ddns.net shall I set them to my domain? But when I even do it the domain won't redirect to my site!
– Shadow4Kill
Apr 6 '17 at 6:28
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks, Would you please give an screenshot of your sub domain setting which you set it to mine?
– Shadow4Kill
Apr 6 '17 at 7:24
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
Thanks for your kindness, I exactly did right that but it's not working. And my bigger problem is that what shall I set the DNS of my domain. when I try to set them in herahost1.ddns.com and herahost2.ddns.com which are set to my ip it says something went wrong!
– Shadow4Kill
Apr 6 '17 at 8:38
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
And this is my screen of settings link
– Shadow4Kill
Apr 6 '17 at 8:43
|
show 1 more comment
If it is for just local use, you can just put that entry into your hosts file.
On modern Windows, that is c:/Windows/drivers/etc/HOSTS
On linux, the file is /etc/hosts.
For the rest of the world, use one of the freely available DNS providers.
Here is an example, with instructions: FreeDNS
add a comment |
If it is for just local use, you can just put that entry into your hosts file.
On modern Windows, that is c:/Windows/drivers/etc/HOSTS
On linux, the file is /etc/hosts.
For the rest of the world, use one of the freely available DNS providers.
Here is an example, with instructions: FreeDNS
add a comment |
If it is for just local use, you can just put that entry into your hosts file.
On modern Windows, that is c:/Windows/drivers/etc/HOSTS
On linux, the file is /etc/hosts.
For the rest of the world, use one of the freely available DNS providers.
Here is an example, with instructions: FreeDNS
If it is for just local use, you can just put that entry into your hosts file.
On modern Windows, that is c:/Windows/drivers/etc/HOSTS
On linux, the file is /etc/hosts.
For the rest of the world, use one of the freely available DNS providers.
Here is an example, with instructions: FreeDNS
answered Apr 5 '17 at 17:28
SDsolar
1,48941337
1,48941337
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f900523%2fhow-to-set-a-domain-to-ip-address%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
There are a lot of free DNS providers. If you don't want to use them, you'll need to edit the /etc/hosts file on each computer that uses the IP address.
– zondo
Apr 5 '17 at 17:15
So how can I use them?
– Shadow4Kill
Apr 5 '17 at 17:24
1
It looks like you using Apache/2.4.7. So in short: 1st you have to acquire FQDN from some DNS provider. 2nd: you must setup a
ServerName
directive into your/etc/apache2/sites-available/your-virtualhost.conf
file.– pa4080
Apr 5 '17 at 17:42
1
If this is just for your use, I highly recommend freedns.afraid.org. You can either use a custom domain that you get elsewhere, or you can take a subdomain of any of their thousands. The guy who runs it is also very friendly and has helped me with some of my DNS problems.
– zondo
Apr 5 '17 at 18:25