WAMPserver DNS is Not Working for Virtual Hosts












0















I set up a virtual host for my laravel project, and while I can access the site via IP I cannot access it by domain name (it redirects me to WAMPserver's homepage). For reference I'll provide both relevant screenshots and code excerpts:



httpd-vhosts.conf File



#Dragon's Lair Laravel Project
<VirtualHost 127.27.18.28:80>
ServerName dragonslair.test
DocumentRoot "c:/laravelprojects/dragonslair/public"
<Directory "c:/laravelprojects/dragonslair/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


enter image description here



hosts File



#
127.0.0.1 localhost
::1 localhost
192.168.10.10 dummyRegistration.test

127.27.18.28 dragonslair.test
::1 dragonslair.test


enter image description here



IP Address Resolves Properly



enter image description here



Domain Name Redirect



enter image description here



I would presumably create many virtual hosts in future, and don't want to start having to memorise their IP addresses, which is why I want to get the DNS working properly.










share|improve this question

























  • Do you have resolv for hostname dragonslair.test?

    – Romeo Ninov
    Jan 11 at 9:21











  • "resolv"? I am not sure what you're referring to @RomeoNinov.

    – Tobi Alafin
    Jan 11 at 9:30













  • what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

    – Romeo Ninov
    Jan 11 at 9:32











  • @RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

    – Tobi Alafin
    Jan 11 at 9:36













  • In hosts file add line like: 127.27.18.28 dragonslair.test

    – Romeo Ninov
    Jan 11 at 9:38
















0















I set up a virtual host for my laravel project, and while I can access the site via IP I cannot access it by domain name (it redirects me to WAMPserver's homepage). For reference I'll provide both relevant screenshots and code excerpts:



httpd-vhosts.conf File



#Dragon's Lair Laravel Project
<VirtualHost 127.27.18.28:80>
ServerName dragonslair.test
DocumentRoot "c:/laravelprojects/dragonslair/public"
<Directory "c:/laravelprojects/dragonslair/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


enter image description here



hosts File



#
127.0.0.1 localhost
::1 localhost
192.168.10.10 dummyRegistration.test

127.27.18.28 dragonslair.test
::1 dragonslair.test


enter image description here



IP Address Resolves Properly



enter image description here



Domain Name Redirect



enter image description here



I would presumably create many virtual hosts in future, and don't want to start having to memorise their IP addresses, which is why I want to get the DNS working properly.










share|improve this question

























  • Do you have resolv for hostname dragonslair.test?

    – Romeo Ninov
    Jan 11 at 9:21











  • "resolv"? I am not sure what you're referring to @RomeoNinov.

    – Tobi Alafin
    Jan 11 at 9:30













  • what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

    – Romeo Ninov
    Jan 11 at 9:32











  • @RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

    – Tobi Alafin
    Jan 11 at 9:36













  • In hosts file add line like: 127.27.18.28 dragonslair.test

    – Romeo Ninov
    Jan 11 at 9:38














0












0








0








I set up a virtual host for my laravel project, and while I can access the site via IP I cannot access it by domain name (it redirects me to WAMPserver's homepage). For reference I'll provide both relevant screenshots and code excerpts:



httpd-vhosts.conf File



#Dragon's Lair Laravel Project
<VirtualHost 127.27.18.28:80>
ServerName dragonslair.test
DocumentRoot "c:/laravelprojects/dragonslair/public"
<Directory "c:/laravelprojects/dragonslair/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


enter image description here



hosts File



#
127.0.0.1 localhost
::1 localhost
192.168.10.10 dummyRegistration.test

127.27.18.28 dragonslair.test
::1 dragonslair.test


enter image description here



IP Address Resolves Properly



enter image description here



Domain Name Redirect



enter image description here



I would presumably create many virtual hosts in future, and don't want to start having to memorise their IP addresses, which is why I want to get the DNS working properly.










share|improve this question
















I set up a virtual host for my laravel project, and while I can access the site via IP I cannot access it by domain name (it redirects me to WAMPserver's homepage). For reference I'll provide both relevant screenshots and code excerpts:



httpd-vhosts.conf File



#Dragon's Lair Laravel Project
<VirtualHost 127.27.18.28:80>
ServerName dragonslair.test
DocumentRoot "c:/laravelprojects/dragonslair/public"
<Directory "c:/laravelprojects/dragonslair/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


enter image description here



hosts File



#
127.0.0.1 localhost
::1 localhost
192.168.10.10 dummyRegistration.test

127.27.18.28 dragonslair.test
::1 dragonslair.test


enter image description here



IP Address Resolves Properly



enter image description here



Domain Name Redirect



enter image description here



I would presumably create many virtual hosts in future, and don't want to start having to memorise their IP addresses, which is why I want to get the DNS working properly.







networking dns wamp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 11 at 9:31







Tobi Alafin

















asked Jan 11 at 8:55









Tobi AlafinTobi Alafin

1216




1216













  • Do you have resolv for hostname dragonslair.test?

    – Romeo Ninov
    Jan 11 at 9:21











  • "resolv"? I am not sure what you're referring to @RomeoNinov.

    – Tobi Alafin
    Jan 11 at 9:30













  • what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

    – Romeo Ninov
    Jan 11 at 9:32











  • @RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

    – Tobi Alafin
    Jan 11 at 9:36













  • In hosts file add line like: 127.27.18.28 dragonslair.test

    – Romeo Ninov
    Jan 11 at 9:38



















  • Do you have resolv for hostname dragonslair.test?

    – Romeo Ninov
    Jan 11 at 9:21











  • "resolv"? I am not sure what you're referring to @RomeoNinov.

    – Tobi Alafin
    Jan 11 at 9:30













  • what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

    – Romeo Ninov
    Jan 11 at 9:32











  • @RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

    – Tobi Alafin
    Jan 11 at 9:36













  • In hosts file add line like: 127.27.18.28 dragonslair.test

    – Romeo Ninov
    Jan 11 at 9:38

















Do you have resolv for hostname dragonslair.test?

– Romeo Ninov
Jan 11 at 9:21





Do you have resolv for hostname dragonslair.test?

– Romeo Ninov
Jan 11 at 9:21













"resolv"? I am not sure what you're referring to @RomeoNinov.

– Tobi Alafin
Jan 11 at 9:30







"resolv"? I am not sure what you're referring to @RomeoNinov.

– Tobi Alafin
Jan 11 at 9:30















what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

– Romeo Ninov
Jan 11 at 9:32





what is the result of nslookup dragonslair.test? If you have no output you should set it (possible in hosts file)

– Romeo Ninov
Jan 11 at 9:32













@RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

– Tobi Alafin
Jan 11 at 9:36







@RomeoNinov here's the output of nslookup: i.imgur.com/cxMD67L.png. Apparently, "dragonslair.test" is not set. I am not sure how to set it, I provided an example of my hosts file, and I'm not sure what I'm doing wrong.

– Tobi Alafin
Jan 11 at 9:36















In hosts file add line like: 127.27.18.28 dragonslair.test

– Romeo Ninov
Jan 11 at 9:38





In hosts file add line like: 127.27.18.28 dragonslair.test

– Romeo Ninov
Jan 11 at 9:38










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393081%2fwampserver-dns-is-not-working-for-virtual-hosts%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393081%2fwampserver-dns-is-not-working-for-virtual-hosts%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Сан-Квентин

Алькесар

Josef Freinademetz